org.apache.tuscany.sca.contribution.processor
Interface ArtifactProcessorExtensionPoint<P extends ArtifactProcessor>

All Known Subinterfaces:
StAXArtifactProcessorExtensionPoint, URLArtifactProcessorExtensionPoint
All Known Implementing Classes:
DefaultStAXArtifactProcessorExtensionPoint, DefaultURLArtifactProcessorExtensionPoint

public interface ArtifactProcessorExtensionPoint<P extends ArtifactProcessor>

An extension point for artifact processors.

Version:
$Rev: 539692 $ $Date: 2007-05-19 07:06:18 +0100 (Sat, 19 May 2007) $

Method Summary
 void addArtifactProcessor(P artifactProcessor)
          Add an artifact processor.
 P getProcessor(java.lang.Class<?> modelType)
          Returns the processor associated with the given model type.
 P getProcessor(java.lang.Object artifactType)
          Returns the processor associated with the given artifact type.
 void removeArtifactProcessor(P artifactProcessor)
          Remove an artifact processor.
 

Method Detail

addArtifactProcessor

void addArtifactProcessor(P artifactProcessor)
Add an artifact processor.

Parameters:
artifactProcessor - The artifact processor to add

removeArtifactProcessor

void removeArtifactProcessor(P artifactProcessor)
Remove an artifact processor.

Parameters:
artifactProcessor - The artifact processor to remove

getProcessor

P getProcessor(java.lang.Object artifactType)
Returns the processor associated with the given artifact type.

Parameters:
artifactType - An artifact type
Returns:
The processor associated with the given artifact type

getProcessor

P getProcessor(java.lang.Class<?> modelType)
Returns the processor associated with the given model type.

Parameters:
modelType - A model type
Returns:
The processor associated with the given model type