org.apache.tuscany.sca.contribution.processor
Interface ArtifactProcessor<M>

All Known Subinterfaces:
StAXArtifactProcessor<M>, URLArtifactProcessor<M>
All Known Implementing Classes:
ExtensibleStAXArtifactProcessor, ExtensibleURLArtifactProcessor

public interface ArtifactProcessor<M>

Interface for extensions that can process contributions.

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

Method Summary
 java.lang.Class<M> getModelType()
          Returns the type of model handled by this artifact processor.
 void resolve(M model, ModelResolver resolver)
          Resolve references from this model to other models.
 

Method Detail

resolve

void resolve(M model,
             ModelResolver resolver)
             throws ContributionResolveException
Resolve references from this model to other models. For example references from a composite to another one, or references from a composite to a WSDL model.

Parameters:
model - The model to resolve
resolver - The resolver to use to resolve referenced models
Throws:
ContributionResolveException

getModelType

java.lang.Class<M> getModelType()
Returns the type of model handled by this artifact processor.

Returns:
The type of model handled by this artifact processor