Transfer version 1.1

transfer.com.factory
Class AbstractBaseFactory

WEB-INF.cftags.component
        extended by transfer.com.factory.AbstractBaseFactory
Direct Known Subclasses:
AOPFactory , CacheFactory , DynamicFactory , FacadeFactory , Factory , DatasourceFactory , SQLFactory , TransactionFactory

public class AbstractBaseFactory
extends WEB-INF.cftags.component

the abstract base for all factories


Constructor Summary
private init()
          Constructor
 
Method Summary
private any autowire(any object)
          autowires a bean by class name
 MethodInvoker getMethodInvoker()
          returns a method invoker
private any getObjectFromFactory(string factoryClass, string factorymethod, [boolean autocreate='true'])
          gets an object from a factory
private string getPropertyValue(string name)
          returns a property value
private struct getPropertyValueCache()
private any getSingleton(string class)
          creates and keeps a singleton
private struct getSingletonCache()
private any getSingletonFromCache(string class)
          returns the singleton from the cache
private boolean hasSingleton(string class)
          whether or not it hsa it in cache
 void setPropertyValue(string name, string value)
          sets a property value for use in autowiring
private void setPropertyValueCache(struct PropertyValueCache)
 void setSingleton(any object, [string class])
          adds a singleton to the factory, for lookup purposes
private void setSingletonCache(struct SingletonCache)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

private init()
Constructor

Method Detail

autowire

private any autowire(any object)
autowires a bean by class name

Parameters:
object - the object to autowire

getMethodInvoker

public MethodInvoker getMethodInvoker()
returns a method invoker


getObjectFromFactory

private any getObjectFromFactory(string factoryClass, string factorymethod, [boolean autocreate='true'])
gets an object from a factory

Parameters:
factoryClass - the name of the factory
factorymethod - the name of the method to get the result from
autocreate - whether or not to auto create the factory

getPropertyValue

private string getPropertyValue(string name)
returns a property value

Parameters:
name - the name of the property

getPropertyValueCache

private struct getPropertyValueCache()


getSingleton

private any getSingleton(string class)
creates and keeps a singleton

Parameters:
class - the class name

getSingletonCache

private struct getSingletonCache()


getSingletonFromCache

private any getSingletonFromCache(string class)
returns the singleton from the cache

Parameters:
class - the class of the singleton to retrieve

hasSingleton

private boolean hasSingleton(string class)
whether or not it hsa it in cache

Parameters:
class - the class name

setPropertyValue

public void setPropertyValue(string name, string value)
sets a property value for use in autowiring

Parameters:
name - the name of the property value to match to
value - the value use

setPropertyValueCache

private void setPropertyValueCache(struct PropertyValueCache)

Parameters:
PropertyValueCache

setSingleton

public void setSingleton(any object, [string class])
adds a singleton to the factory, for lookup purposes

Parameters:
object - the object to add
class - the name of the class

setSingletonCache

private void setSingletonCache(struct SingletonCache)

Parameters:
SingletonCache

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

Transfer version 1.1