|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.spring.container.SpringContainerContext
public class SpringContainerContext
Implementation of ContainerContext to allow compoennts to be retrieved from a spring container
Constructor Summary | |
---|---|
SpringContainerContext()
|
Method Summary | |
---|---|
void |
autowireComponent(Object bean)
autowire the dependences a bean that has already been created |
protected void |
contextReloaded()
|
Object |
createComponent(Class clazz)
Create an object of the given class, and try to auto-wire it as much as we can. |
protected org.springframework.context.ApplicationContext |
getApplicationContext()
|
Object |
getComponent(Object key)
Retrieves a component from the container |
javax.servlet.ServletContext |
getServletContext()
|
boolean |
isSetup()
|
void |
publishEvent(Event e)
|
void |
refresh()
Refreshes the container, i.e. |
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext)
|
void |
setServletContext(javax.servlet.ServletContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringContainerContext()
Method Detail |
---|
public void setServletContext(javax.servlet.ServletContext context)
public javax.servlet.ServletContext getServletContext()
public Object getComponent(Object key) throws ComponentNotFoundException
ContainerContext
getComponent
in interface ContainerContext
key
- the key which matches to the component
ComponentNotFoundException
- if the key passed in is null or the component is not found
or if there is more than one satisfiable component for the given key, such as the key is a Class
and multiple instances of the class exist in the containerpublic Object createComponent(Class clazz)
ContainerContext
createComponent
in interface ContainerContext
public void autowireComponent(Object bean)
autowireComponent
in interface ContainerContext
bean
- public void setApplicationContext(org.springframework.context.ApplicationContext appContext) throws org.springframework.context.ApplicationContextException
org.springframework.context.ApplicationContextException
public void refresh()
ContainerContext
refresh
in interface ContainerContext
public boolean isSetup()
isSetup
in interface ContainerContext
protected void contextReloaded()
protected org.springframework.context.ApplicationContext getApplicationContext()
public void publishEvent(Event e)
publishEvent
in interface ContainerContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |