@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 @" +