public Producer<X> getProducer() { checkWithinObserverNotification(); return bean.getProducer(); }
public Producer<X> getProducer() { checkWithinObserverNotification(); return bean.getProducer(); }
@Override public Set<InjectionPoint> getInjectionPoints() { return getProducer().getInjectionPoints(); }
/** * Creates an instance of the bean * * @returns The instance */ public T create(final CreationalContext<T> creationalContext) { T instance = getProducer().produce(creationalContext); instance = checkReturnValue(instance); return instance; }
/** * Creates an instance of the bean * * @returns The instance */ public T create(final CreationalContext<T> creationalContext) { T instance = getProducer().produce(creationalContext); instance = checkReturnValue(instance); return instance; }
/** * Creates an instance of the bean * * @returns The instance */ public T create(final CreationalContext<T> creationalContext) { T instance = getProducer().produce(creationalContext); instance = checkReturnValue(instance); return instance; }
/** * Creates an instance of the bean * * @returns The instance */ public T create(final CreationalContext<T> creationalContext) { T instance = getProducer().produce(creationalContext); instance = checkReturnValue(instance); return instance; }
/** * Creates an instance of the bean * * @returns The instance */ public T create(final CreationalContext<T> creationalContext) { T instance = getProducer().produce(creationalContext); instance = checkReturnValue(instance); return instance; }
/** * Creates an instance of the bean * * @returns The instance */ public T create(final CreationalContext<T> creationalContext) { T instance = getProducer().produce(creationalContext); instance = checkReturnValue(instance); return instance; }
public AnnotatedParameter<T> getAnnotatedDisposedParameter() { checkWithinObserverNotification(); if (getBean().getProducer() instanceof AbstractMemberProducer<?, ?>) { AbstractMemberProducer<?, ?> producer = (AbstractMemberProducer<?, ?>) getBean().getProducer(); if (producer.getDisposalMethod() != null) { return cast(producer.getDisposalMethod().getDisposesParameter()); } } return null; } }
public AnnotatedParameter<T> getAnnotatedDisposedParameter() { checkWithinObserverNotification(); if (getBean().getProducer() instanceof AbstractMemberProducer<?, ?>) { AbstractMemberProducer<?, ?> producer = (AbstractMemberProducer<?, ?>) getBean().getProducer(); if (producer.getDisposalMethod() != null) { return cast(producer.getDisposalMethod().getDisposesParameter()); } } return null; } }
public AnnotatedParameter<T> getAnnotatedDisposedParameter() { checkWithinObserverNotification(); if (getBean().getProducer() instanceof AbstractMemberProducer<?, ?>) { AbstractMemberProducer<?, ?> producer = (AbstractMemberProducer<?, ?>) getBean().getProducer(); if (producer.getDisposalMethod() != null) { return cast(producer.getDisposalMethod().getDisposesParameter()); } } return null; } }
public AnnotatedParameter<T> getAnnotatedDisposedParameter() { checkWithinObserverNotification(); if (getBean().getProducer() instanceof AbstractMemberProducer<?, ?>) { AbstractMemberProducer<?, ?> producer = (AbstractMemberProducer<?, ?>) getBean().getProducer(); if (producer.getDisposalMethod() != null) { return cast(producer.getDisposalMethod().getDisposesParameter()); } } return null; } }
public AnnotatedParameter<T> getAnnotatedDisposedParameter() { checkWithinObserverNotification(); if (getBean().getProducer() instanceof AbstractMemberProducer<?, ?>) { AbstractMemberProducer<?, ?> producer = (AbstractMemberProducer<?, ?>) getBean().getProducer(); if (producer.getDisposalMethod() != null) { return cast(producer.getDisposalMethod().getDisposesParameter()); } } return null; } }
@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 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 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 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 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 destroy(T instance, CreationalContext<T> creationalContext) { super.destroy(instance, creationalContext); try { getProducer().dispose(instance); } catch (Exception e) { BeanLogger.LOG.errorDestroying(instance, this); BeanLogger.LOG.catchingDebug(e); } finally { if (getDeclaringBean().isDependent()) { creationalContext.release(); } } }