org.apache.hivemind.lib.factory
Class BeanFactoryImpl

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by 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
 

Constructor Detail

BeanFactoryImpl

public BeanFactoryImpl(org.apache.hivemind.ErrorLog errorLog,
                       java.lang.Class vendType,
                       java.util.List contributions,
                       boolean defaultCacheable)
Method Detail

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


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.