properties.put(UIExtensionFactory.EXTENSION_POINT_KEY, UIExtensionFactory.EXTENSION_POINT_VALUE_MENU);
properties.put(Constants.SERVICE_RANKING, 102);
manager.add(createComponent()
.setInterface(UIExtensionFactory.class.getName(), properties)
.setImplementation(new UIExtensionFactory() {
@Override
public Component create(Map<String, Object> context) {
EditUserInfoButton b = new EditUserInfoButton();
manager.add(createComponent()
.setImplementation(b)
.setComposition("getComposition")
.add(createServiceDependency()
.setService(UserEditor.class)
.setRequired(true))
.add(createServiceDependency()
.setService(LogService.class)
.setRequired(false)
)
);
return b;
}
}
)
);
properties.put(Constants.SERVICE_RANKING, 101);
manager.add(createComponent()
.setInterface(UIExtensionFactory.class.getName(), properties)
.setImplementation(new UIExtensionFactory() {
@Override
public Component create(Map<String, Object> context) {
UserAdminButton b = new UserAdminButton();
manager.add(createComponent()
.setImplementation(b)