private Class resolveManagedAnnotation(Endpoint endpoint) {
CamelContext context = endpoint.getCamelContext();
ClassResolver resolver = context.getClassResolver();
return resolver.resolveClass(MANAGED_RESOURCE_CLASSNAME);
}
private void attemptToRegisterManagedResource(Endpoint endpoint, Object annotation) {
try {
Method m = annotation.getClass().getMethod("objectName");