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 URL artifact processor extension point.


Field Summary
protected  java.util.Map<java.lang.Object,P> processorsByArtifactType
           
protected  java.util.Map<java.lang.Class<?>,P> processorsByModelType
           
 
Constructor Summary
DefaultURLArtifactProcessorExtensionPoint(ExtensionPointRegistry extensionPoints)
          Constructs a new extension point.
 
Method Summary
 void addArtifactProcessor(URLArtifactProcessor artifactProcessor)
          Add an artifact processor.
 URLArtifactProcessor getProcessor(java.lang.Class<?> modelType)
          Returns the processor associated with the given model type.
 URLArtifactProcessor 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processorsByArtifactType

protected final java.util.Map<java.lang.Object,P> processorsByArtifactType

processorsByModelType

protected final java.util.Map<java.lang.Class<?>,P> processorsByModelType
Constructor Detail

DefaultURLArtifactProcessorExtensionPoint

public DefaultURLArtifactProcessorExtensionPoint(ExtensionPointRegistry extensionPoints)
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 URLArtifactProcessor getProcessor(java.lang.Class<?> modelType)
Returns the processor associated with the given model type.

Specified by:
getProcessor in interface ArtifactProcessorExtensionPoint<URLArtifactProcessor>
Parameters:
modelType - A model type
Returns:
The processor associated with the given model type

getProcessor

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

Specified by:
getProcessor in interface ArtifactProcessorExtensionPoint<URLArtifactProcessor>
Parameters:
artifactType - An artifact type
Returns:
The processor associated with the given artifact type