org.apache.tuscany.sca.contribution
Interface Contribution

All Superinterfaces:
Artifact, Base
All Known Subinterfaces:
Workspace

public interface Contribution
extends Artifact

The representation of an SCA contribution.


Field Summary
static java.lang.String SCA_CONTRIBUTION_DEPLOYABLES
          Default location of deployable composites in an SCA contribution.
static java.lang.String SCA_CONTRIBUTION_GENERATED_META
          Default location of a generated contribution metadata in an SCA contribution.
static java.lang.String SCA_CONTRIBUTION_META
          Default location of contribution metadata in an SCA contribution.
 
Method Summary
 java.util.List<Artifact> getArtifacts()
          Returns the list of artifacts in the contribution.
 java.lang.ClassLoader getClassLoader()
          Returns the ClassLoader used to load classes and resources from this contribution FIXME Remove this, the base contribution model should not depend on Java ClassLoaders.
 java.util.List<Composite> getDeployables()
          Returns the list of deployable composites in the contribution.
 java.util.List<Export> getExports()
          Returns a list of exports based on the contribution metadata.
 java.util.List<Import> getImports()
          Returns a list of imports based on the contribution metadata.
 ModelResolver getModelResolver()
          Returns the model resolver for the models representing the artifacts visible in the scope of this contribution.
 void setClassLoader(java.lang.ClassLoader classLoader)
          Sets the ClassLoader used to load classes and resources from this contribution FIXME Remove this, the base contribution model should not depend on Java ClassLoaders.
 void setModelResolver(ModelResolver modelResolver)
          Sets the model resolver for the models representing the artifacts visible in the scope of this contribution.
 
Methods inherited from interface org.apache.tuscany.sca.contribution.Artifact
getContents, getLocation, getModel, getURI, setContents, setLocation, setModel, setURI
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Field Detail

SCA_CONTRIBUTION_META

static final java.lang.String SCA_CONTRIBUTION_META
Default location of contribution metadata in an SCA contribution.

See Also:
Constant Field Values

SCA_CONTRIBUTION_GENERATED_META

static final java.lang.String SCA_CONTRIBUTION_GENERATED_META
Default location of a generated contribution metadata in an SCA contribution.

See Also:
Constant Field Values

SCA_CONTRIBUTION_DEPLOYABLES

static final java.lang.String SCA_CONTRIBUTION_DEPLOYABLES
Default location of deployable composites in an SCA contribution.

See Also:
Constant Field Values
Method Detail

getExports

java.util.List<Export> getExports()
Returns a list of exports based on the contribution metadata.

Returns:
The list of exports in this contribution

getImports

java.util.List<Import> getImports()
Returns a list of imports based on the contribution metadata.

Returns:
The list of imports in this contribution

getDeployables

java.util.List<Composite> getDeployables()
Returns the list of deployable composites in the contribution.

Returns:
The list of deployable composites

getArtifacts

java.util.List<Artifact> getArtifacts()
Returns the list of artifacts in the contribution.

Returns:
The list of artifacts in the contribution

getModelResolver

ModelResolver getModelResolver()
Returns the model resolver for the models representing the artifacts visible in the scope of this contribution.

Returns:
The model resolver

setModelResolver

void setModelResolver(ModelResolver modelResolver)
Sets the model resolver for the models representing the artifacts visible in the scope of this contribution.

Parameters:
modelResolver - The model resolver

getClassLoader

java.lang.ClassLoader getClassLoader()
Returns the ClassLoader used to load classes and resources from this contribution FIXME Remove this, the base contribution model should not depend on Java ClassLoaders.

Returns:
The contribution ClassLoader

setClassLoader

void setClassLoader(java.lang.ClassLoader classLoader)
Sets the ClassLoader used to load classes and resources from this contribution FIXME Remove this, the base contribution model should not depend on Java ClassLoaders.

Parameters:
classLoader - the contribution class loader