IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.element
Class BasicElementFactory

java.lang.Object
  extended by com.ibm.btt.element.BasicElementFactory
All Implemented Interfaces:
ElementFactory
Direct Known Subclasses:
InvokerFactory, LegacyElementFactory, UniversalElementFactory

public class BasicElementFactory
extends java.lang.Object
implements ElementFactory


Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> classTable
           
protected  java.util.List<ElementProcessor> elementProcessors
           
protected  boolean firstCallInvoked
           
protected  LifeCycleProcessor lifeCycleProcessor
           
static java.lang.String PROTOTYPE
           
protected  ScopeManager scopeManager
           
protected  SimpleElementManager simpleElementManager
           
static java.lang.String SINGLETON
           
protected  TagProvider tagProvider
           
 
Constructor Summary
BasicElementFactory(java.lang.String fileName)
           
BasicElementFactory(TagProvider provider)
           
 
Method Summary
protected  java.lang.Object createByConstructor(Tag tag, Arguments arguments)
           
protected  java.lang.Object createByDefaultConstructor(Tag tag)
           
protected  java.lang.Object createByInstanceFactory(Tag tag, java.lang.Object factory, java.lang.String methodName, Arguments arguments)
           
protected  java.lang.Object createByStaticFactory(Tag tag, java.lang.String methodName, Arguments arg)
           
protected  java.lang.Object createElement(Tag tag)
          This method is not intended to be overrided.
protected  java.lang.Object createReferencedElement(Tag tag)
           
 void destory()
          Deprecated. 
 void destroy()
          Destroy the ElementFactory and all its managed elements.
 java.lang.Object getElement(java.lang.String id)
          Get a object using ID
 SimpleElementManager getSimpleElementManager()
           
protected  void initializeSingleElement(Tag tag, java.lang.Object element)
           
protected  void injectToParent(Tag parentTag, java.lang.Object parentElement, Tag childTag, java.lang.Object childElement)
           
protected  boolean isReferenceTag(Tag tag)
           
protected  void setClassTable(java.util.Map<java.lang.String,java.lang.String> classTable)
           
protected  void setDefaultScope(java.lang.String scope)
           
protected  void setElementProcessors(java.util.List<ElementProcessor> processors)
           
 void setSimpleElementManager(SimpleElementManager simpleElementManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
See Also:
Constant Field Values

SINGLETON

public static final java.lang.String SINGLETON
See Also:
Constant Field Values

tagProvider

protected TagProvider tagProvider

elementProcessors

protected java.util.List<ElementProcessor> elementProcessors

classTable

protected java.util.Map<java.lang.String,java.lang.String> classTable

lifeCycleProcessor

protected LifeCycleProcessor lifeCycleProcessor

scopeManager

protected ScopeManager scopeManager

simpleElementManager

protected SimpleElementManager simpleElementManager

firstCallInvoked

protected boolean firstCallInvoked
Constructor Detail

BasicElementFactory

public BasicElementFactory(java.lang.String fileName)
                    throws ElementException
Throws:
ElementException

BasicElementFactory

public BasicElementFactory(TagProvider provider)
                    throws ElementException
Throws:
ElementException
Method Detail

getSimpleElementManager

public SimpleElementManager getSimpleElementManager()

setSimpleElementManager

public void setSimpleElementManager(SimpleElementManager simpleElementManager)

setClassTable

protected void setClassTable(java.util.Map<java.lang.String,java.lang.String> classTable)

setDefaultScope

protected void setDefaultScope(java.lang.String scope)

setElementProcessors

protected void setElementProcessors(java.util.List<ElementProcessor> processors)

getElement

public java.lang.Object getElement(java.lang.String id)
                            throws ElementException
Description copied from interface: ElementFactory
Get a object using ID

Specified by:
getElement in interface ElementFactory
Returns:
Object
Throws:
ElementException

createElement

protected final java.lang.Object createElement(Tag tag)
                                        throws ElementException
This method is not intended to be overrided.

Parameters:
tag -
Returns:
Throws:
ElementException

createByDefaultConstructor

protected java.lang.Object createByDefaultConstructor(Tag tag)
                                               throws ElementException
Throws:
ElementException

createByConstructor

protected java.lang.Object createByConstructor(Tag tag,
                                               Arguments arguments)
                                        throws ElementException
Throws:
ElementException

createByInstanceFactory

protected java.lang.Object createByInstanceFactory(Tag tag,
                                                   java.lang.Object factory,
                                                   java.lang.String methodName,
                                                   Arguments arguments)
                                            throws ElementException
Throws:
ElementException

createByStaticFactory

protected java.lang.Object createByStaticFactory(Tag tag,
                                                 java.lang.String methodName,
                                                 Arguments arg)
                                          throws ElementException
Throws:
ElementException

createReferencedElement

protected java.lang.Object createReferencedElement(Tag tag)
                                            throws ElementException
Throws:
ElementException

isReferenceTag

protected boolean isReferenceTag(Tag tag)

injectToParent

protected void injectToParent(Tag parentTag,
                              java.lang.Object parentElement,
                              Tag childTag,
                              java.lang.Object childElement)
                       throws ElementException
Throws:
ElementException

initializeSingleElement

protected void initializeSingleElement(Tag tag,
                                       java.lang.Object element)
                                throws ElementException
Throws:
ElementException

destroy

public void destroy()
Destroy the ElementFactory and all its managed elements.


destory

@Deprecated
public void destory()
Deprecated. 


IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011