IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.config.impl
Class TagProviderChain

java.lang.Object
  extended by com.ibm.btt.config.impl.TagProviderChain
All Implemented Interfaces:
Initializer, TagProvider

public class TagProviderChain
extends java.lang.Object
implements TagProvider, Initializer

Tag provider chain class


Constructor Summary
TagProviderChain()
          TagProviderChain constructor
 
Method Summary
 void addTagProvider(TagProvider provider)
          Add tag provider to this chain
 void cleanup(KeyedCollection config)
          Cleanup current component
 Tag getTag(java.lang.String key)
          find a Tag identified by the id.
 void initialize(KeyedCollection config)
          Initialize current component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagProviderChain

public TagProviderChain()
TagProviderChain constructor

Method Detail

addTagProvider

public void addTagProvider(TagProvider provider)
Add tag provider to this chain

Parameters:
provider - desired tag provider

getTag

public Tag getTag(java.lang.String key)
           throws TagNotFoundException,
                  TagProviderException
Description copied from interface: TagProvider
find a Tag identified by the id.
the behavior of this method depends on the implementaion.
You can choose to use SimpleXMLTagProvider, as its defines all the tag in one file,
or, you can implement your own TagProvider, according to your requirments.
You should throw a TagNotFondException when the tag for id is not defined rather than return a null value.

Specified by:
getTag in interface TagProvider
Parameters:
key - id of the tag.
Returns:
corresponding tag.
Throws:
TagNotFoundException - cannot find the tag because of no definition for the id.
TagProviderException - Some error exist in TagProvider or its definition file.

cleanup

public void cleanup(KeyedCollection config)
             throws BTTCleanUpException
Description copied from interface: Initializer
Cleanup current component

Specified by:
cleanup in interface Initializer
Parameters:
config - the current cached XML cleans the current cached configuration
Throws:
BTTCleanUpException

initialize

public void initialize(KeyedCollection config)
                throws BTTInitException
Description copied from interface: Initializer
Initialize current component

Specified by:
initialize in interface Initializer
Throws:
BTTInitException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011