fr.ifremer.allegro
Class BeanLocator

java.lang.Object
  extended by fr.ifremer.allegro.BeanLocator

public class BeanLocator
extends java.lang.Object

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

instance

public static final BeanLocator instance()
Gets the shared instance of this Class

Returns:
the shared bean locator instance.

init

public void init()
Initializes the Spring application context from the default settings.


init

public void init(java.lang.String beanFactoryReferenceLocation,
                 java.lang.String beanRefFactoryReferenceId)
Initializes the Spring application context from the given beanFactoryReferenceLocation. If null is specified for the beanFactoryReferenceLocation then the default application context will be used.

Parameters:
beanFactoryReferenceLocation - the location of the beanRefFactory reference.

init

public void init(java.lang.String beanFactoryReferenceLocation)
Initializes the Spring application context from the given beanFactoryReferenceLocation. If null is specified for the beanFactoryReferenceLocation then the default application context will be used.

Parameters:
beanFactoryReferenceLocation - the location of the beanRefFactory reference.

getContext

protected org.springframework.context.ApplicationContext getContext()
Gets the Spring ApplicationContext.


shutdown

public void shutdown()
Shuts down the BeanLocator and releases any used resources.


getBean

public java.lang.Object getBean(java.lang.String name)
Retrieve the bean with the given name.



Copyright © 2008-2010 IFREMER. All Rights Reserved.