Errai 3.0.1-SNAPSHOT

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

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.AsyncProxyInjector
All Implemented Interfaces:
Injector

public class AsyncProxyInjector
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
AsyncProxyInjector(org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCProcessingContext context, MetaClass proxiedType, QualifyingMetadata metadata)
           
 
Method Summary
 void addProxyCloseStatement(Statement statement)
           
 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.
 String getInstanceVarName()
          The unique variable name for the bean instance.
 BlockBuilder getProxyResolverBlockBuilder()
           
 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, getMetadataWithAny, getPostInitCallbackVar, getPreDestroyCallbackVar, getProxyInstanceVarName, getProxyPropertyMap, getQualifyingMetadata, getQualifyingTypeInformation, getRegistrationHooks, getRenderingHooks, getWeavingStatements, getWeavingStatementsMap, hasAttribute, hasNewQualifier, isAlternative, isCreated, isDependent, isEnabled, isProvider, isProxied, isPseudo, isRegularTypeInjector, isRendered, isSingleton, isSoftDisabled, isStatic, 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

AsyncProxyInjector

public AsyncProxyInjector(org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCProcessingContext context,
                          MetaClass proxiedType,
                          QualifyingMetadata metadata)
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:

getInstanceVarName

public String getInstanceVarName()
Description copied from interface: Injector
The unique variable name for the bean instance. Usually used to reference the bean during the wiring of the bean within the CreationalContext.getInstance() method body. This variable name is also used to provide a name to variable which holds a reference to singleton instances.

Specified by:
getInstanceVarName in interface Injector
Overrides:
getInstanceVarName in class AbstractInjector
Returns:
the unique variable name for a bean in the bootstrapper and CreationalContext.getInstance() method.

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.

addProxyCloseStatement

public void addProxyCloseStatement(Statement statement)

getProxyResolverBlockBuilder

public BlockBuilder getProxyResolverBlockBuilder()

Errai 3.0.1-SNAPSHOT

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