|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.security.SecurityAwareConfigurer
public class SecurityAwareConfigurer
This class performs two main functions:
AuthenticationAware.ClientSecurityEvents and updates all the beans
in the context that implement either AuthenticationAware or LoginAware
according to the event received.
<bean id="securityAwareConfigurer"
class="org.springframework.richclient.security.SecurityAwareConfigurer"
lazy-init="false"/>
AuthenticationAware,
LoginAware,
ClientSecurityEvent| Constructor Summary | |
|---|---|
SecurityAwareConfigurer()
|
|
| Method Summary | |
|---|---|
protected void |
addToNonSingletonListeners(Object bean)
Add a non-singleton bean instance to our list for later notification. |
protected void |
broadcastAuthentication(org.springframework.security.Authentication authentication)
Broadcast an authentication event to all the AuthenticationAware beans. |
protected void |
broadcastLogin(org.springframework.security.Authentication authentication)
Broadcast a Login event to all the LoginAware beans. |
protected void |
broadcastLogout(org.springframework.security.Authentication authentication)
Broadcast a Logout event to all the LoginAware beans. |
ApplicationContext |
getApplicationContext()
Get the installed application context. |
protected List |
getBeansToUpdate(Class beanType)
Construct the list of all the beans we need to update. |
protected List |
getNonSingletonListeners(Class beanType)
Get the list of non-singleton beans we have registered that still exist. |
void |
onApplicationEvent(ApplicationEvent event)
|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
|
void |
setApplicationContext(ApplicationContext applicationContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityAwareConfigurer()
| Method Detail |
|---|
public ApplicationContext getApplicationContext()
protected void broadcastAuthentication(org.springframework.security.Authentication authentication)
authentication - tokenprotected void broadcastLogin(org.springframework.security.Authentication authentication)
authentication - tokenprotected void broadcastLogout(org.springframework.security.Authentication authentication)
authentication - tokenprotected List getBeansToUpdate(Class beanType)
beanType - Type of bean to locate
protected List getNonSingletonListeners(Class beanType)
beanType - Type of bean to locate
protected void addToNonSingletonListeners(Object bean)
bean - public void onApplicationEvent(ApplicationEvent event)
onApplicationEvent in interface ApplicationListener
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansException
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws BeansException
postProcessBeforeInitialization in interface BeanPostProcessorBeansException
public Object postProcessAfterInitialization(Object bean,
String beanName)
throws BeansException
postProcessAfterInitialization in interface BeanPostProcessorBeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||