Object usesPort = getAnnotationValue(binding, UsesPort.class);
Object exposedByPort = getAnnotationValue(binding, ExposedByPort.class);
if (usesPort != null) {
PortMapping portMapping = getOrCreatePortMapping(compMapping, (String) usesPort);
if (portMapping != null) {
if (!portMapping.getUsingClass().contains(implDef)) {
portMapping.getUsingClass().add(implDef);
}
}
}
if (exposedByPort != null) {
PortMapping portMapping = getOrCreatePortMapping(compMapping, (String) exposedByPort);
if (portMapping != null) {
if (!portMapping.getExposedClass().contains(implDef)) {
portMapping.getExposedClass().add(implDef);
}
}
}
}