org.base.apps.util.factory
Class ConfigurableFactory

java.lang.Object
  extended by org.base.apps.util.factory.BaseFactory
      extended by org.base.apps.util.factory.ConfigurableFactory
All Implemented Interfaces:
Factory, Named
Direct Known Subclasses:
ElementFactory, SwingViewFactory

public abstract class ConfigurableFactory
extends BaseFactory
implements Named

Factory implementation configured via a ResourceManager.

Author:
Kevan Simpson

Constructor Summary
protected ConfigurableFactory()
           
protected ConfigurableFactory(Named named)
           
 
Method Summary
<T> T
create(Class<T> type, Object... args)
          Creates a new instance of the specified class, optionally using the given arguments.
protected  ResourceManager rMgr()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.base.apps.util.Named
getName
 

Constructor Detail

ConfigurableFactory

protected ConfigurableFactory()

ConfigurableFactory

protected ConfigurableFactory(Named named)
Method Detail

create

public <T> T create(Class<T> type,
                    Object... args)
Description copied from interface: Factory
Creates a new instance of the specified class, optionally using the given arguments.

Specified by:
create in interface Factory
Overrides:
create in class BaseFactory
Type Parameters:
T - The generic representing type of the new instance.
Parameters:
type - The type of the new instance.
args - Optionally used arguments used to create the new instance.
Returns:
A new instance of the given type or null.
See Also:
BaseFactory.create(java.lang.Class, java.lang.Object[])

rMgr

protected ResourceManager rMgr()

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)