|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.ContainerContextHandler
public class ContainerContextHandler
This is a wrapper around Spring applicative main context.
Method Summary | |
---|---|
protected void |
contextReloaded()
Publish a ContextRefreshedEvent on applicationContext |
org.springframework.context.ApplicationContext |
getApplicationContext()
|
java.lang.Object |
getComponent(java.lang.String key)
Retrieve a component from Spring handled context. |
static ContainerContextHandler |
getInstance()
|
javax.servlet.ServletContext |
getServletContext()
|
boolean |
isSetup()
|
void |
refresh()
Refresh or create the handled String applicative context. |
void |
registerComponent(java.lang.String key,
java.lang.Object component)
Register a component as a singleton within Spring handled application context and the web tier servlet context if present. |
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext)
Set the handled Spring applicative context. |
void |
setServletContext(javax.servlet.ServletContext context)
Assign the servlet context for whom Spring context will be handled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isSetup()
public void setServletContext(javax.servlet.ServletContext context)
context
- The servlet context for whom handling Spring contextpublic javax.servlet.ServletContext getServletContext()
public void setApplicationContext(org.springframework.context.ApplicationContext appContext) throws org.springframework.context.ApplicationContextException
appContext
- The context to wrapp
org.springframework.context.ApplicationContextException
- if problem occurs during beanFactory initializationpublic org.springframework.context.ApplicationContext getApplicationContext()
public java.lang.Object getComponent(java.lang.String key) throws java.lang.IllegalStateException, InvalidParameterException
key
- Key identifier of the component to retrieve
java.lang.IllegalStateException
- if no Spring context is handled
InvalidParameterException
- if key is null or component cannot be found.public void registerComponent(java.lang.String key, java.lang.Object component) throws java.lang.IllegalStateException, InvalidParameterException
key
- The key to use for registring singletoncomponent
- The component to register
java.lang.IllegalStateException
- if no Spring context is handled
InvalidParameterException
- if key is null or component already existspublic void refresh()
ContainerContextLoader
implementation.
public static ContainerContextHandler getInstance()
protected void contextReloaded()
ContextRefreshedEvent
on applicationContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |