@Component(value="cuba_AnonymousSessionHolder") public class AnonymousSessionHolder extends java.lang.Object implements AppContext.Listener, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected AuthenticationManager |
authenticationManager |
protected UserSession |
session |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
AnonymousSessionHolder() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted()
Called by
AppContext after successful application startup and initialization. |
void |
applicationStopped()
Called by
AppContext before application shutdown. |
UserSession |
getAnonymousSession() |
int |
getOrder() |
void |
init() |
protected void |
initializeAnonymousSession() |
protected UserSession |
loginAnonymous() |
protected volatile UserSession session
@Inject protected AuthenticationManager authenticationManager
public void applicationStarted()
AppContext.Listener
AppContext
after successful application startup and initialization.applicationStarted
in interface AppContext.Listener
public void applicationStopped()
AppContext.Listener
AppContext
before application shutdown.applicationStopped
in interface AppContext.Listener
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public UserSession getAnonymousSession()
protected void initializeAnonymousSession()
protected UserSession loginAnonymous() throws LoginException
LoginException
@PostConstruct public void init()