@Override public <T> AnnotatedType<T> getAnnotatedType(Class<T> type, String id) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return slimAnnotatedTypeStore.get(type, id); }
@Override public <T> AnnotatedType<T> getAnnotatedType(Class<T> type, String id) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return slimAnnotatedTypeStore.get(type, id); }
@Override public <T> AnnotatedType<T> getAnnotatedType(Class<T> type, String id) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return slimAnnotatedTypeStore.get(type, id); }
@Override public <T> Iterable<AnnotatedType<T>> getAnnotatedTypes(Class<T> type) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return cast(slimAnnotatedTypeStore.get(type)); }
@Override public <T> WeldBeanConfigurator<T> addBean() { checkWithinObserverNotification(); BeanConfiguratorImpl<T> configurator = new BeanConfiguratorImpl<>(getReceiver().getClass(), getBeanDeploymentFinder()); additionalBeans.add(BeanRegistration.of(configurator, getReceiver())); return configurator; }
@Override public <T> Iterable<AnnotatedType<T>> getAnnotatedTypes(Class<T> type) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return cast(slimAnnotatedTypeStore.get(type)); }
@Override public <T> WeldBeanConfigurator<T> addBean() { checkWithinObserverNotification(); BeanConfiguratorImpl<T> configurator = new BeanConfiguratorImpl<>(getReceiver().getClass(), getBeanDeploymentFinder()); additionalBeans.add(BeanRegistration.of(configurator, getReceiver())); return configurator; }
@Override public <T> Iterable<AnnotatedType<T>> getAnnotatedTypes(Class<T> type) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return cast(slimAnnotatedTypeStore.get(type)); }
@Override public <T> WeldBeanConfigurator<T> addBean() { checkWithinObserverNotification(); BeanConfiguratorImpl<T> configurator = new BeanConfiguratorImpl<>(getReceiver().getClass(), getBeanDeploymentFinder()); additionalBeans.add(BeanRegistration.of(configurator, getReceiver())); return configurator; }
@Override public <T> ObserverMethodConfigurator<T> addObserverMethod() { checkWithinObserverNotification(); ObserverMethodConfiguratorImpl<T> configurator = new ObserverMethodConfiguratorImpl<>(getReceiver()); additionalObservers.add(ObserverRegistration.of(configurator, getReceiver())); return configurator; }
@Override public <T> ObserverMethodConfigurator<T> addObserverMethod() { checkWithinObserverNotification(); ObserverMethodConfiguratorImpl<T> configurator = new ObserverMethodConfiguratorImpl<>(getReceiver()); additionalObservers.add(ObserverRegistration.of(configurator, getReceiver())); return configurator; }
@Override public <T> ObserverMethodConfigurator<T> addObserverMethod() { checkWithinObserverNotification(); ObserverMethodConfiguratorImpl<T> configurator = new ObserverMethodConfiguratorImpl<>(getReceiver()); additionalObservers.add(ObserverRegistration.of(configurator, getReceiver())); return configurator; }
@Override public <T> Iterable<AnnotatedType<T>> getAnnotatedTypes(Class<T> type) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(type, TYPE_ARGUMENT_NAME); return cast(slimAnnotatedTypeStore.get(type)); }
@Override public <T> ObserverMethodConfigurator<T> addObserverMethod() { checkWithinObserverNotification(); ObserverMethodConfiguratorImpl<T> configurator = new ObserverMethodConfiguratorImpl<>(getReceiver()); additionalObservers.add(ObserverRegistration.of(configurator, getReceiver())); return configurator; }
@Override public void addObserverMethod(ObserverMethod<?> observerMethod) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); validateObserverMethod(observerMethod, getBeanManager(), null); additionalObservers.add(ObserverRegistration.of(observerMethod, getReceiver())); BootstrapLogger.LOG.addObserverMethodCalled(getReceiver(), observerMethod); }
@Override public void addObserverMethod(ObserverMethod<?> observerMethod) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); validateObserverMethod(observerMethod, getBeanManager(), null); additionalObservers.add(ObserverRegistration.of(observerMethod, getReceiver())); BootstrapLogger.LOG.addObserverMethodCalled(getReceiver(), observerMethod); }
@Override public void addBean(Bean<?> bean) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(bean, "bean"); ExternalBeanAttributesFactory.validateBeanAttributes(bean, getBeanManager()); validateBean(bean); additionalBeans.add(BeanRegistration.of(bean, getReceiver())); BootstrapLogger.LOG.addBeanCalled(getReceiver(), bean); }
@Override public void addBean(Bean<?> bean) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(bean, "bean"); ExternalBeanAttributesFactory.validateBeanAttributes(bean, getBeanManager()); validateBean(bean); additionalBeans.add(BeanRegistration.of(bean, getReceiver())); BootstrapLogger.LOG.addBeanCalled(getReceiver(), bean); }
@Override public void addBean(Bean<?> bean) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(bean, "bean"); ExternalBeanAttributesFactory.validateBeanAttributes(bean, getBeanManager()); validateBean(bean); additionalBeans.add(BeanRegistration.of(bean, getReceiver())); BootstrapLogger.LOG.addBeanCalled(getReceiver(), bean); }
@Override public void addBean(Bean<?> bean) { checkWithinObserverNotification(); Preconditions.checkArgumentNotNull(bean, "bean"); ExternalBeanAttributesFactory.validateBeanAttributes(bean, getBeanManager()); validateBean(bean); additionalBeans.add(BeanRegistration.of(bean, getReceiver())); BootstrapLogger.LOG.addBeanCalled(getReceiver(), bean); }