* implementation in the Apam model.
*/
protected ImplementationImpl(CompositeType composite, ApformImplementation apfImpl) throws InvalidConfiguration {
super(apfImpl);
ImplementationDeclaration declaration = apfImpl.getDeclaration();
/*
* Reference the declared provided specification
*/
if (declaration.getSpecification() != null) {
String specificationName = declaration.getSpecification().getName();
Specification specification = CST.componentBroker.getSpec(specificationName);
assert specification != null;
mySpec = specification;
}
/*
* If the implementation does not provides explicitly any specification,
* we build a dummy specification to allow the resolution algorithm to
* access the provided resources of this implementation
*/
if (mySpec == null) {
mySpec = CST.componentBroker.createSpec(declaration.getName() + "_spec", declaration.getProvidedResources(), (Map<String, String>) null);
}
/*
* Reference the enclosing composite type
*/