}
}
//inbound
log.info("connector of type: " + connector);
InboundResource inboundResource = resourceAdapter.getInboundResourceAdapter();
if (inboundResource == null) {
inboundResource = new InboundResource();
inboundResource.setMessageAdapter(new MessageAdapter());
}
MessageAdapter messageAdapter = inboundResource.getMessageAdapter();
List<Class> activationSpecClasses = classFinder.findAnnotatedClasses(Activation.class);
for (Class<?> asClass : activationSpecClasses) {
Activation activation = asClass.getAnnotation(Activation.class);
for (Class messageListenerClass : activation.messageListeners()) {
ActivationSpec activationSpec = getActivationSpec(messageAdapter, messageListenerClass);
if (activationSpec.getActivationSpecClass() == null) {
activationSpec.setActivationSpecClass(asClass.getName());
}
if (asClass.getName().equals(activationSpec.getActivationSpecClass())) {
setConfigProperties(activationSpec.getConfigProperty(), asClass);
}
//TODO set required config properties from @NotNull annotations
}
}
if (resourceAdapter.getInboundResourceAdapter() == null && inboundResource.getMessageAdapter().getMessageListener().size() > 0) {
resourceAdapter.setInboundResourceAdapter(inboundResource);
}
//admin objects
for (Class adminObjectClass : classFinder.findAnnotatedClasses(AdministeredObject.class)) {