org.jboss.metadata.process.chain
Interface ProcessorChain<T extends JBossMetaData>

All Known Implementing Classes:
JBossMetaDataProcessorChain

public interface ProcessorChain<T extends JBossMetaData>

ProcessorChain Defines the contract for a chain of Processors upon metadata

Version:
$Revision: $
Author:
ALR

Method Summary
 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
 

Method Detail

process

T process(T metadata)
                                throws ProcessingException
Processes the specified metadata against the configured processors, returning the output

Parameters:
metadata -
Throws:
ProcessingException

getProcessors

List<JBossMetaDataProcessor<T>> getProcessors()
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

Returns:

addProcessor

void addProcessor(JBossMetaDataProcessor<T> processor)
Adds the specified processor to the chain

Parameters:
processor -


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.