org.jboss.metadata.process.chain.ejb.jboss
Class JBossMetaDataProcessorChain<T extends JBossMetaData>

java.lang.Object
  extended by org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain<T>
All Implemented Interfaces:
ProcessorChain<T>

public class JBossMetaDataProcessorChain<T extends JBossMetaData>
extends Object
implements ProcessorChain<T>

JBossMetaDataProcessorChain A Processor Chain for JBossMetaData

Version:
$Revision: $
Author:
ALR

Constructor Summary
JBossMetaDataProcessorChain()
          Creates a new chain with empty processor list
JBossMetaDataProcessorChain(List<JBossMetaDataProcessor<T>> initialProcessors)
          Creates a new chain with the specified Processors
 
Method Summary
protected  List<JBossMetaDataProcessor<T>> _getProcessors()
           
 void addProcessor(JBossMetaDataProcessor<T> processor)
          Adds the specified processor to the chain
 List<JBossMetaDataProcessor<T>> getProcessors()
          Obtains all processors in the chain.
 T process(T metadata)
          Processes the specified metadata against the configured processors, returning the output
protected  void setProcessors(List<JBossMetaDataProcessor<T>> processors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossMetaDataProcessorChain

public JBossMetaDataProcessorChain()
Creates a new chain with empty processor list


JBossMetaDataProcessorChain

public JBossMetaDataProcessorChain(List<JBossMetaDataProcessor<T>> initialProcessors)
Creates a new chain with the specified Processors

Method Detail

addProcessor

public void addProcessor(JBossMetaDataProcessor<T> processor)
Description copied from interface: ProcessorChain
Adds the specified processor to the chain

Specified by:
addProcessor in interface ProcessorChain<T extends JBossMetaData>

getProcessors

public List<JBossMetaDataProcessor<T>> getProcessors()
Description copied from interface: ProcessorChain
Obtains all processors in the chain. Will return an immutable view of the configured processors as to not allow published mutation of the List except as provided

Specified by:
getProcessors in interface ProcessorChain<T extends JBossMetaData>
Returns:

process

public T process(T metadata)
                                throws ProcessingException
Description copied from interface: ProcessorChain
Processes the specified metadata against the configured processors, returning the output

Specified by:
process in interface ProcessorChain<T extends JBossMetaData>
Throws:
ProcessingException

_getProcessors

protected List<JBossMetaDataProcessor<T>> _getProcessors()

setProcessors

protected void setProcessors(List<JBossMetaDataProcessor<T>> processors)


Copyright © 2009 JBoss Inc.. All Rights Reserved.