|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.ifremer.allegro.BeanLocator
public class BeanLocator
Provides lookup for Spring beans
Method Summary | |
---|---|
java.lang.Object |
getBean(java.lang.String name)
Retrieve the bean with the given name . |
protected org.springframework.context.ApplicationContext |
getContext()
Gets the Spring ApplicationContext. |
void |
init()
Initializes the Spring application context from the default settings. |
void |
init(java.lang.String beanFactoryReferenceLocation)
Initializes the Spring application context from the given beanFactoryReferenceLocation . |
void |
init(java.lang.String beanFactoryReferenceLocation,
java.lang.String beanRefFactoryReferenceId)
Initializes the Spring application context from the given beanFactoryReferenceLocation . |
static BeanLocator |
instance()
Gets the shared instance of this Class |
void |
shutdown()
Shuts down the BeanLocator and releases any used resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final BeanLocator instance()
public void init()
public void init(java.lang.String beanFactoryReferenceLocation, java.lang.String beanRefFactoryReferenceId)
beanFactoryReferenceLocation
. If null
is specified for the beanFactoryReferenceLocation
then the default application context will be used.
beanFactoryReferenceLocation
- the location of the beanRefFactory reference.public void init(java.lang.String beanFactoryReferenceLocation)
beanFactoryReferenceLocation
. If null
is specified for the beanFactoryReferenceLocation
then the default application context will be used.
beanFactoryReferenceLocation
- the location of the beanRefFactory reference.protected org.springframework.context.ApplicationContext getContext()
public void shutdown()
public java.lang.Object getBean(java.lang.String name)
name
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |