public interface ContributionProcessor
Resources contain 0..n ResourceElements, which are addressable parts. ResourceElements contain a key
for a symbol space and a value. When a resource is indexed, only ResourceElement keys are available; their values have not yet been loaded. The final
processing phase is when the contribution is loaded. At this point, all contribution artifacts, including those in dependent contributions, are made
available through the provided classloader. Indexed Resources are iterated and all ResourceElement values are loaded via the loader framework. As
ResourceElements may refer to other ResourceElements, loading may occur recursively.| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Contribution contribution)
Returns true if the processor can process the contribution.
|
void |
index(Contribution contribution,
IntrospectionContext context)
Indexes all contribution resources
|
void |
process(Contribution contribution,
IntrospectionContext context)
Loads all resources in the contribution.
|
void |
processManifest(Contribution contribution,
IntrospectionContext context)
Processes manifest information for the contribution, including imports and exports.
|
boolean canProcess(Contribution contribution)
contribution - the contributionvoid processManifest(Contribution contribution, IntrospectionContext context) throws org.fabric3.api.host.Fabric3Exception
contribution - the contribution that will be used to hold the results from the processingcontext - the context to which validation errors and warnings are reportedorg.fabric3.api.host.Fabric3Exception - if there was a problem with the contributionvoid index(Contribution contribution, IntrospectionContext context) throws org.fabric3.api.host.Fabric3Exception
contribution - the contribution to indexcontext - the context to which validation errors and warnings are reportedorg.fabric3.api.host.Fabric3Exception - if there was a problem indexingvoid process(Contribution contribution, IntrospectionContext context) throws org.fabric3.api.host.Fabric3Exception
contribution - the contributioncontext - the context to which validation errors and warnings are reportedorg.fabric3.api.host.Fabric3Exception - if there was a problem loading the contribution resources