com.fatwire.gst.foundation.controller.action.support
Class ClassBasedFactory
java.lang.Object
com.fatwire.gst.foundation.controller.action.support.BaseFactory
com.fatwire.gst.foundation.controller.action.support.ClassBasedFactory
- All Implemented Interfaces:
- Factory
public class ClassBasedFactory
- extends BaseFactory
Factory that reads the producer methods of the passed in class names.
- Author:
- Dolf Dijkstra
Fields inherited from class com.fatwire.gst.foundation.controller.action.support.BaseFactory |
ics, LOG |
Method Summary |
protected Class<?>[] |
factoryClasses(COM.FutureTense.Interfaces.ICS ics)
Method to find classes to use for the producer methods. |
Methods inherited from class com.fatwire.gst.foundation.controller.action.support.BaseFactory |
createFromMethod, createICS, ctorStrategy, getObject, invokeCreateMethod, locate, namedAnnotationStrategy, reflectionStrategy, shouldCache, throwRuntimeException, toString, unnamedAnnotationStrategy |
ClassBasedFactory
public ClassBasedFactory(COM.FutureTense.Interfaces.ICS ics,
Factory parent,
String... classnames)
- Parameters:
ics
- parent
- the parent factoryclassnames
- the names of the classes that hold the factory methods
ClassBasedFactory
public ClassBasedFactory(COM.FutureTense.Interfaces.ICS ics,
Factory parent,
ClassLoader classLoader,
String... classnames)
- Parameters:
ics
- parent
- the parent factoryclassLoader
- the classloader to load the classes ofclassnames
- the names of the classes that hold the factory methods
factoryClasses
protected Class<?>[] factoryClasses(COM.FutureTense.Interfaces.ICS ics)
- Description copied from class:
BaseFactory
- Method to find classes to use for the producer methods. This
implementation returns
Object.getClass()
. Subclasses can return and
are encouraged to return other classes.
- Overrides:
factoryClasses
in class BaseFactory
- Returns:
- array of classes to use for reflection
Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.