org.apache.hivemind.lib.factory
Class BeanFactoryImpl
java.lang.Object
   org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.impl.BaseLocatable
       org.apache.hivemind.lib.factory.BeanFactoryImpl
org.apache.hivemind.lib.factory.BeanFactoryImpl
- All Implemented Interfaces: 
- BeanFactory, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
- public class BeanFactoryImpl 
- extends org.apache.hivemind.impl.BaseLocatable- implements BeanFactory
Implementation of BeanFactory.
- Author:
- Howard Lewis Ship
| Constructor Summary | 
| BeanFactoryImpl(org.apache.hivemind.ErrorLog errorLog,
                               java.lang.Class vendType,
                               java.util.List contributions,
                               boolean defaultCacheable)
 | 
 
| Method Summary | 
|  boolean | contains(java.lang.String locator)Returns true if a bean matching the provided locator has been
 defined.
 | 
|  java.lang.Object | get(java.lang.String locator)Gets a bean via its locator (it's name plus, optionally, an initializer).
 | 
 
| Methods inherited from class org.apache.hivemind.impl.BaseLocatable | 
| getLocation, setLocation | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BeanFactoryImpl
public BeanFactoryImpl(org.apache.hivemind.ErrorLog errorLog,
                       java.lang.Class vendType,
                       java.util.List contributions,
                       boolean defaultCacheable)
contains
public boolean contains(java.lang.String locator)
- Description copied from interface: BeanFactory
- Returns true if a bean matching the provided locator has been
 defined.
 
- 
- Specified by:
- containsin interface- BeanFactory
 
- 
- Parameters:
- locator- the name or name and initializer
- Returns:
- true if a bean matching the provided locator has ben defined
 
get
public java.lang.Object get(java.lang.String locator)
- Description copied from interface: BeanFactory
- Gets a bean via its locator (it's name plus, optionally, an initializer).
 
- 
- Specified by:
- getin interface- BeanFactory
 
- 
- Parameters:
- locator- the name or name and initializer
- Returns:
- a bean instance