use of org.apache.deltaspike.core.api.jmx.JmxBroadcaster in project deltaspike by apache.
the class BroadcasterProducer method jmxBroadcaster.
@Produces
@Dependent
public JmxBroadcaster jmxBroadcaster(final InjectionPoint ip) {
final Class<?> declaringClass = ip.getMember().getDeclaringClass();
final JmxBroadcaster broadcaster = extension.getBroadcasterFor(declaringClass);
if (broadcaster == null) {
//TODO discuss validation during bootstrapping
throw new IllegalStateException("Invalid injection of " + JmxBroadcaster.class.getName() + " in " + declaringClass.getName() + " detected. It is required to annotate the class with @" + MBean.class.getName());
}
return broadcaster;
}
Aggregations