Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.rebind.ioc.injector.async
Class AsyncProducerInjector

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector
      extended by org.jboss.errai.ioc.rebind.ioc.injector.async.AbstractAsyncInjector
          extended by org.jboss.errai.ioc.rebind.ioc.injector.async.AsyncProducerInjector
All Implemented Interfaces:
Injector

public class AsyncProducerInjector
extends AbstractAsyncInjector

Author:
Mike Brock

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector
AbstractInjector.RegisterCache
 
Field Summary
 
Fields inherited from class org.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector
_registerCache, alternative, attributes, basic, beanName, creationalCallbackVarName, enabled, enclosingType, postInitCallbackVar, preDestroyCallbackVar, provider, qualifyingMetadata, qualifyingTypeInformation, replaceable, singleton, softDisabled, testMock
 
Constructor Summary
AsyncProducerInjector(MetaClass injectedType, MetaClassMember producerMember, InjectableInstance producerInjectableInstance)
           
 
Method Summary
 void doBindings(BlockBuilder<?> block, InjectionContext injectionContext, Statement beanRef)
           
 Statement getBeanInstance(InjectableInstance injectableInstance)
          Return a statement providing access to the injector (or null for asynchronous logic)
 MetaClass getInjectedType()
          The injected type of the injector.
 MetaClassMember getProducerMember()
           
 boolean isStatic()
          Checks is the injector is a static injector, meaning that it can safely be referenced from anywhere, without concern for ordering of its declaring class.
 void renderProvider(InjectableInstance injectableInstance)
           
 
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.injector.async.AbstractAsyncInjector
registerWithBeanManager
 
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector
addDisablingHook, addInvokeAfter, addInvokeAround, addInvokeBefore, addProxyProperty, addProxyProperty, addRegistrationHook, addRenderingHook, addStatementToEndOfInjector, createProxyDeclaration, createProxyDeclaration, disableSoftly, getAddToEndStatements, getAttribute, getBeanName, getConcreteInjectedType, getCreationalCallbackVarName, getDisablingCallbacks, getEnclosingType, getInstanceVarName, getMetadataWithAny, getPostInitCallbackVar, getPreDestroyCallbackVar, getProxyInstanceVarName, getProxyPropertyMap, getQualifyingMetadata, getQualifyingTypeInformation, getRegistrationHooks, getRenderingHooks, getWeavingStatements, getWeavingStatementsMap, hasAttribute, hasNewQualifier, isAlternative, isCreated, isDependent, isEnabled, isProvider, isProxied, isPseudo, isRegularTypeInjector, isRendered, isSingleton, isSoftDisabled, isTestMock, markRendered, matches, setAttribute, setCreated, setCreationalCallbackVarName, setEnabled, setPostInitCallbackVar, setPreDestroyCallbackVar, setRendered, setReplaceable, setSoftDisabled, toString, updateProxies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncProducerInjector

public AsyncProducerInjector(MetaClass injectedType,
                             MetaClassMember producerMember,
                             InjectableInstance producerInjectableInstance)
Method Detail

renderProvider

public void renderProvider(InjectableInstance injectableInstance)

getBeanInstance

public Statement getBeanInstance(InjectableInstance injectableInstance)
Description copied from interface: Injector
Return a statement providing access to the injector (or null for asynchronous logic)

Returns:

doBindings

public void doBindings(BlockBuilder<?> block,
                       InjectionContext injectionContext,
                       Statement beanRef)

isStatic

public boolean isStatic()
Description copied from interface: Injector
Checks is the injector is a static injector, meaning that it can safely be referenced from anywhere, without concern for ordering of its declaring class.

Specified by:
isStatic in interface Injector
Overrides:
isStatic in class AbstractInjector
Returns:
true if the injector is a static injector

getProducerMember

public MetaClassMember getProducerMember()

getInjectedType

public MetaClass getInjectedType()
Description copied from interface: Injector
The injected type of the injector. This is the absolute type which the injector produces. For producers, this is the bean type which the producer method returns.

Returns:
the return type from the injector.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.