algairim commented on a change in pull request #1299:
URL: https://github.com/apache/brooklyn-server/pull/1299#discussion_r803581623
##########
File path:
core/src/main/java/org/apache/brooklyn/entity/group/GroupsChangePolicy.java
##########
@@ -151,14 +215,19 @@ protected void onEntityAdded(Entity member) {
} else {
enricherSpec = EnricherSpec.create(ImmutableMap.of(),
(Class<Enricher>) new
OsgiBrooklynClassLoadingContext(entity).tryLoadClass(type).get());
}
- enricherSpec.configure((Map<String, Object>)
stringObjectMap.get("brooklyn.config"));
+ enricherSpec.configure((Map<String, Object>)
stringObjectMap.get(BROOKLYN_CONFIG));
AbstractTypePlanTransformer.checkSecuritySensitiveFields(enricherSpec);
member.enrichers().add(enricherSpec);
}
);
}
+ @SuppressWarnings("unchecked")
+ private static <T> TypeToken<T> getType(BrooklynClassLoadingContext
loader, String className) {
+ return (TypeToken<T>) new
BrooklynTypeNameResolution.BrooklynTypeNameResolver("", loader, true,
true).getTypeToken(className);
+ }
Review comment:
Composite effector did not work without this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]