.addDependency(MBeanServerService.SERVICE_NAME, MBeanServer.class, mbeanRegistrationService.getMBeanServerInjector())
.addDependency(startStopServiceName, Object.class, mbeanRegistrationService.getValueInjector());
}
private Injector<Object> getPropertyInjector(final Value<Class<?>> classValue, final String propertyName, final CreateDestroyService<?> startStopService, final Value<?> value) {
return new MethodInjector<Object>(cached(new LookupSetMethodValue(classValue, propertyName)), startStopService, null, Collections.singletonList(value));
}