@Override public void setInjectionPoint(InjectionPoint injectionPoint) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); BootstrapLogger.LOG.setInjectionPointCalled(getReceiver(), ip, injectionPoint); ip = injectionPoint; dirty = true; injectionPointSet = true; }
@Override public void setObserverMethod(ObserverMethod<T> observerMethod) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); checkWithinObserverNotification(); replaceObserverMethod(observerMethod); observerMethodSet = true; }
@Override public void setInjectionPoint(InjectionPoint injectionPoint) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); BootstrapLogger.LOG.setInjectionPointCalled(getReceiver(), ip, injectionPoint); ip = injectionPoint; dirty = true; injectionPointSet = true; }
@Override public void setInjectionPoint(InjectionPoint injectionPoint) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); BootstrapLogger.LOG.setInjectionPointCalled(getReceiver(), ip, injectionPoint); ip = injectionPoint; dirty = true; injectionPointSet = true; }
@Override public void setBeanAttributes(BeanAttributes<T> beanAttributes) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessBeanAttributes.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); BootstrapLogger.LOG.setBeanAttributesCalled(getReceiver(), attributes, beanAttributes); attributes = beanAttributes; dirty = true; beanAttributesSet = true; }
@Override public InjectionPointConfigurator configureInjectionPoint() { if (injectionPointSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new InjectionPointConfiguratorImpl(ip); } BootstrapLogger.LOG.configureInjectionPointCalled(getReceiver(), ip); return configurator; }
@Override public InjectionPointConfigurator configureInjectionPoint() { if (injectionPointSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new InjectionPointConfiguratorImpl(ip); } BootstrapLogger.LOG.configureInjectionPointCalled(getReceiver(), ip); return configurator; }
@Override public InjectionPointConfigurator configureInjectionPoint() { if (injectionPointSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new InjectionPointConfiguratorImpl(ip); } BootstrapLogger.LOG.configureInjectionPointCalled(getReceiver(), ip); return configurator; }
@Override public InjectionPointConfigurator configureInjectionPoint() { if (injectionPointSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessInjectionPoint.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new InjectionPointConfiguratorImpl(ip); } BootstrapLogger.LOG.configureInjectionPointCalled(getReceiver(), ip); return configurator; }
@Override public AnnotatedTypeConfigurator<X> configureAnnotatedType() { if (annotatedTypeSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessAnnotatedType.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new AnnotatedTypeConfiguratorImpl<>(annotatedType); } BootstrapLogger.LOG.configureAnnotatedTypeCalled(getReceiver(), annotatedType); return configurator; }
@Override public AnnotatedTypeConfigurator<X> configureAnnotatedType() { if (annotatedTypeSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessAnnotatedType.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new AnnotatedTypeConfiguratorImpl<>(annotatedType); } BootstrapLogger.LOG.configureAnnotatedTypeCalled(getReceiver(), annotatedType); return configurator; }
@Override public ProducerConfigurator<X> configureProducer() { if (producerSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessProducer.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ProducerConfiguratorImpl<X>(bean.getProducer()); } BootstrapLogger.LOG.configureProducerCalled(getReceiver(), bean); return configurator; }
@Override public ObserverMethodConfigurator<T> configureObserverMethod() { if (observerMethodSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ObserverMethodConfiguratorImpl<>(observerMethod, getReceiver()); } BootstrapLogger.LOG.configureObserverMethodCalled(getReceiver(), observerMethod); return configurator; }
@Override public ProducerConfigurator<X> configureProducer() { if (producerSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessProducer.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ProducerConfiguratorImpl<X>(bean.getProducer()); } BootstrapLogger.LOG.configureProducerCalled(getReceiver(), bean); return configurator; }
@Override public BeanAttributesConfigurator<T> configureBeanAttributes() { if (beanAttributesSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessBeanAttributes.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new BeanAttributesConfiguratorImpl<>(attributes, getBeanManager()); } BootstrapLogger.LOG.configureBeanAttributesCalled(getReceiver(), attributes); return configurator; }
@Override public BeanAttributesConfigurator<T> configureBeanAttributes() { if (beanAttributesSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessBeanAttributes.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new BeanAttributesConfiguratorImpl<>(attributes, getBeanManager()); } BootstrapLogger.LOG.configureBeanAttributesCalled(getReceiver(), attributes); return configurator; }
@Override public ProducerConfigurator<X> configureProducer() { if (producerSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessProducer.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ProducerConfiguratorImpl<X>(bean.getProducer()); } BootstrapLogger.LOG.configureProducerCalled(getReceiver(), bean); return configurator; }
public void setProducer(Producer<X> producer) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessProducer.class.getSimpleName(), getReceiver()); } checkArgumentNotNull(producer, "producer"); checkWithinObserverNotification(); BootstrapLogger.LOG.setProducerCalled(getReceiver(), getProducer(), producer); this.bean.setProducer(producer); producerSet = true; }
public void setProducer(Producer<X> producer) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessProducer.class.getSimpleName(), getReceiver()); } checkArgumentNotNull(producer, "producer"); checkWithinObserverNotification(); BootstrapLogger.LOG.setProducerCalled(getReceiver(), getProducer(), producer); this.bean.setProducer(producer); producerSet = true; }
public void setProducer(Producer<X> producer) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessProducer.class.getSimpleName(), getReceiver()); } checkArgumentNotNull(producer, "producer"); checkWithinObserverNotification(); BootstrapLogger.LOG.setProducerCalled(getReceiver(), getProducer(), producer); this.bean.setProducer(producer); producerSet = true; }