|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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(java.lang.Object bean)
autowire the dependences a bean that has already been created |
protected void |
contextReloaded()
|
java.lang.Object |
createCompleteComponent(java.lang.Class clazz)
Creates a new bean from the given class. |
java.lang.Object |
createComponent(java.lang.Class clazz)
Create an object of the given class, and try to auto-wire by name. |
protected org.springframework.context.ApplicationContext |
getApplicationContext()
|
java.lang.Object |
getComponent(java.lang.Object key)
Retrieves a component from the container |
javax.servlet.ServletContext |
getServletContext()
|
boolean |
isSetup()
|
void |
publishEvent(com.atlassian.event.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 java.lang.Object getComponent(java.lang.Object key)
throws ComponentNotFoundException
ContainerContext
getComponent in interface ContainerContextkey - 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 java.lang.Object createComponent(java.lang.Class clazz)
ContainerContext
createComponent in interface ContainerContextpublic java.lang.Object createCompleteComponent(java.lang.Class clazz)
ContainerContextBeanPostProcessors and autowires
the bean.
createCompleteComponent in interface ContainerContextclazz - @NotNull
public void autowireComponent(java.lang.Object bean)
autowireComponent in interface ContainerContextbean -
public void setApplicationContext(org.springframework.context.ApplicationContext appContext)
throws org.springframework.context.ApplicationContextException
org.springframework.context.ApplicationContextExceptionpublic void refresh()
ContainerContext
refresh in interface ContainerContextpublic boolean isSetup()
isSetup in interface ContainerContextprotected void contextReloaded()
protected org.springframework.context.ApplicationContext getApplicationContext()
public void publishEvent(com.atlassian.event.Event e)
publishEvent in interface ContainerContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||