org.apache.tuscany.sca.contribution.processor
Class DefaultURLArtifactProcessorExtensionPoint

java.lang.Object
  extended by org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint
All Implemented Interfaces:
ArtifactProcessorExtensionPoint<URLArtifactProcessor>, URLArtifactProcessorExtensionPoint

public class DefaultURLArtifactProcessorExtensionPoint
extends java.lang.Object
implements URLArtifactProcessorExtensionPoint

The default implementation of a StAX artifact processor registry.

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

Constructor Summary
DefaultURLArtifactProcessorExtensionPoint()
          Constructs a new extension point.
 
Method Summary
 void addArtifactProcessor(URLArtifactProcessor 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(URLArtifactProcessor artifactProcessor)
          Remove an artifact processor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.contribution.processor.ArtifactProcessorExtensionPoint
getProcessor, getProcessor
 

Constructor Detail

DefaultURLArtifactProcessorExtensionPoint

public DefaultURLArtifactProcessorExtensionPoint()
Constructs a new extension point.

Method Detail

addArtifactProcessor

public void addArtifactProcessor(URLArtifactProcessor artifactProcessor)
Description copied from interface: ArtifactProcessorExtensionPoint
Add an artifact processor.

Specified by:
addArtifactProcessor in interface ArtifactProcessorExtensionPoint<URLArtifactProcessor>
Parameters:
artifactProcessor - The artifact processor to add

removeArtifactProcessor

public void removeArtifactProcessor(URLArtifactProcessor artifactProcessor)
Description copied from interface: ArtifactProcessorExtensionPoint
Remove an artifact processor.

Specified by:
removeArtifactProcessor in interface ArtifactProcessorExtensionPoint<URLArtifactProcessor>
Parameters:
artifactProcessor - The artifact processor to remove

getProcessor

public 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

public 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