public class BeanLocator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_PREFIX
The prefix used for all bean ids.
|
Modifier and Type | Method and Description |
---|---|
Object |
getBean(String name)
Retrieve the bean with the given
name . |
ApplicationContext |
getContext()
Gets the Spring ApplicationContext.
|
void |
init()
Initializes the Spring application context from the default settings.
|
void |
init(String beanFactoryReferenceLocationIn)
Initializes the Spring application context from
the given
beanFactoryReferenceLocation . |
void |
init(String beanFactoryReferenceLocationIn,
String beanRefFactoryReferenceIdIn)
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 String BEAN_PREFIX
public static final BeanLocator instance()
public void init()
public void init(String beanFactoryReferenceLocationIn, String beanRefFactoryReferenceIdIn)
beanFactoryReferenceLocation
. If null
is specified for the beanFactoryReferenceLocation
then the default application context will be used.beanFactoryReferenceLocationIn
- the location of the beanRefFactory reference.beanRefFactoryReferenceIdIn
- the id of the beanRefFactory reference.public void init(String beanFactoryReferenceLocationIn)
beanFactoryReferenceLocation
. If null
is specified for the beanFactoryReferenceLocation
then the default application context will be used.beanFactoryReferenceLocationIn
- the location of the beanRefFactory reference.public ApplicationContext getContext()
public void shutdown()
Copyright © 2012–2014 IFREMER. All rights reserved.