|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.accesscontrol.AccessControllerProvider
public class AccessControllerProvider
A provider of the different access controllers available in Silverpeas. The different access controllers are all managed in the IoC container and then can be get by dependency injection. Nevertheless, not all objects in Silverpeas are managed by the IoC container and they can need the services of an access controller. The AccessControllerProvider aims to make available the different access controllers to such objects.
Constructor Summary | |
---|---|
AccessControllerProvider()
|
Method Summary | ||
---|---|---|
static
|
getAccessController(String name)
Gets the access controller identified by the specified name. |
|
static AccessControllerProvider |
getInstance()
Gets an instance of the AccessControllerProvider class. |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessControllerProvider()
Method Detail |
---|
public static AccessControllerProvider getInstance()
public static <T> AccessController<T> getAccessController(String name)
T
- the type of the resource that is used in the access control mechanism.name
- the unique name of the access controller. It is the name under which it has been
registered into the IoC container.
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
Invoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after .ResourceLoaderAware#setResourceLoader
,
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)
and
MessageSourceAware
, if applicable.
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
applicationContext
- the ApplicationContext object to be used by this object
org.springframework.context.ApplicationContextException
- in case of context
initialization errors
org.springframework.beans.BeansException
- if thrown by application context methodsBeanInitializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |