|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.factory.AbstractBaseFactory
public class AbstractBaseFactory
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 |
|---|
private init()
| Method Detail |
|---|
private any autowire(any object)
object - the object to autowirepublic MethodInvoker getMethodInvoker()
private any getObjectFromFactory(string factoryClass, string factorymethod, [boolean autocreate='true'])
factoryClass - the name of the factoryfactorymethod - the name of the method to get the result fromautocreate - whether or not to auto create the factoryprivate string getPropertyValue(string name)
name - the name of the propertyprivate struct getPropertyValueCache()
private any getSingleton(string class)
class - the class nameprivate struct getSingletonCache()
private any getSingletonFromCache(string class)
class - the class of the singleton to retrieveprivate boolean hasSingleton(string class)
class - the class namepublic void setPropertyValue(string name, string value)
name - the name of the property value to match tovalue - the value useprivate void setPropertyValueCache(struct PropertyValueCache)
PropertyValueCachepublic void setSingleton(any object, [string class])
object - the object to addclass - the name of the classprivate void setSingletonCache(struct SingletonCache)
SingletonCacheprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Transfer version 1.1 | ||||
| FRAMES | |||||