com.fatwire.gst.foundation.groovy.context
Class GroovyFactory

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.action.support.BaseFactory
      extended by com.fatwire.gst.foundation.groovy.context.GroovyFactory
All Implemented Interfaces:
Factory

public class GroovyFactory
extends BaseFactory

Factory that dynamically loads other classes that provide producer methods.

Since:
September 23, 2012
Author:
Dolf Dijkstra

Field Summary
 
Fields inherited from class com.fatwire.gst.foundation.controller.action.support.BaseFactory
ics, LOG
 
Constructor Summary
GroovyFactory(COM.FutureTense.Interfaces.ICS ics, ClassLoader gcl, Factory... roots)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroovyFactory

public GroovyFactory(COM.FutureTense.Interfaces.ICS ics,
                     ClassLoader gcl,
                     Factory... roots)
Method Detail

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.