public class BeanLocator extends Object
| Modifier and Type | Method and Description |
|---|---|
Object |
getBean(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(String beanFactoryReferenceLocation)
Initializes the Spring application context from
the given
beanFactoryReferenceLocation. |
void |
init(String beanFactoryReferenceLocation,
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.
|
public static final BeanLocator instance()
public void init()
public void init(String beanFactoryReferenceLocation, 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(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()
Copyright © 2013. All Rights Reserved.