org.apache.hivemind.lib.factory
Class BeanFactoryImpl

java.lang.Object
  |
  +--org.apache.hivemind.impl.BaseLocatable
        |
        +--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.commons.logging.Log log, org.apache.hivemind.ErrorHandler errorHandler, java.lang.Class vendType, java.util.List contributions, boolean defaultCacheable)
           
 
Method Summary
 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
 

Constructor Detail

BeanFactoryImpl

public BeanFactoryImpl(org.apache.commons.logging.Log log,
                       org.apache.hivemind.ErrorHandler errorHandler,
                       java.lang.Class vendType,
                       java.util.List contributions,
                       boolean defaultCacheable)
Method Detail

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:
get in interface BeanFactory
Parameters:
locator - the name or name and initializer
Returns:
a bean instance