This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Tang.Interface.IInjector Interface Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Public Member Functions | List of all members
Org.Apache.REEF.Tang.Interface.IInjector Interface Reference

Inherited by Org.Apache.REEF.Tang.Implementations.InjectionPlan.InjectorImpl.

Public Member Functions

object GetInstance (Type iface)
 Gets an instance of iface, or the implementation that has been bound to it. More...
 
GetInstance< T > ()
 Gets the instance for a given class More...
 
object GetInstance (string iface)
 Gets the instance for a given class name More...
 
GetNamedInstance< T, U > (GenericType< T > clazz)
 Get an instance of the named parameter. More...
 
object GetNamedInstance (Type t)
 Get an instance of the named parameter. More...
 
InjectionPlan GetInjectionPlan (Type name)
 Gets the injection plan. More...
 
InjectionPlan GetInjectionPlan (string name)
 Gets the injection plan for a given class name More...
 
void BindAspect (Aspect a)
 Binds the aspect. More...
 
Aspect GetAspect ()
 Gets the aspect. More...
 
bool IsInjectable (string name)
 Determines whether the specified name is injectable. More...
 
bool IsParameterSet (string name)
 Determines whether [is parameter set] [the specified name]. More...
 
bool IsInjectable (Type clazz)
 Determines whether the specified clazz is injectable. More...
 
bool IsParameterSet (Type name)
 Determines whether [is parameter set] [the specified name]. More...
 
IInjector ForkInjector ()
 Forks the injector. More...
 
IInjector ForkInjector (params IConfiguration[] configurations)
 Forks the injector. More...
 
void BindVolatileInstance< T > (GenericType< T > iface, T inst)
 Binds the volatile instance. More...
 
void BindVolatileParameter< U, T > (GenericType< U > iface, T inst)
 Binds the volatile parameter. More...
 
GetNamedInstance< T, U > ()
 Gets the named instance. More...
 
void BindVolatileInstance< T > (T inst)
 Binds the volatile instance. More...
 
void BindVolatileParameter< U, T > (T inst)
 Binds the volatile parameter. More...
 

Member Function Documentation

void Org.Apache.REEF.Tang.Interface.IInjector.BindAspect ( Aspect  a)

Binds the aspect.

Parameters
aA.
void Org.Apache.REEF.Tang.Interface.IInjector.BindVolatileInstance< T > ( GenericType< T >  iface,
inst 
)

Binds the volatile instance.

Template Parameters
T
Parameters
ifaceThe iface.
instThe inst.
void Org.Apache.REEF.Tang.Interface.IInjector.BindVolatileInstance< T > ( inst)

Binds the volatile instance.

Template Parameters
T
Parameters
instThe inst.
void Org.Apache.REEF.Tang.Interface.IInjector.BindVolatileParameter< U, T > ( GenericType< U >  iface,
inst 
)

Binds the volatile parameter.

Template Parameters
U
T
Parameters
ifaceThe iface.
instThe inst.
Type Constraints
U :Name<T> 
void Org.Apache.REEF.Tang.Interface.IInjector.BindVolatileParameter< U, T > ( inst)

Binds the volatile parameter.

Template Parameters
U
T
Parameters
instThe inst.
Type Constraints
U :Name<T> 
IInjector Org.Apache.REEF.Tang.Interface.IInjector.ForkInjector ( )

Forks the injector.

Returns
IInjector Org.Apache.REEF.Tang.Interface.IInjector.ForkInjector ( params IConfiguration[]  configurations)

Forks the injector.

Parameters
configurationsThe configurations.
Returns
Aspect Org.Apache.REEF.Tang.Interface.IInjector.GetAspect ( )

Gets the aspect.

Returns
InjectionPlan Org.Apache.REEF.Tang.Interface.IInjector.GetInjectionPlan ( Type  name)

Gets the injection plan.

Parameters
nameThe name.
Returns
InjectionPlan Org.Apache.REEF.Tang.Interface.IInjector.GetInjectionPlan ( string  name)

Gets the injection plan for a given class name

Parameters
nameThe name.
Returns
object Org.Apache.REEF.Tang.Interface.IInjector.GetInstance ( Type  iface)

Gets an instance of iface, or the implementation that has been bound to it.

Parameters
ifaceThe iface.
Returns
object Org.Apache.REEF.Tang.Interface.IInjector.GetInstance ( string  iface)

Gets the instance for a given class name

Parameters
ifaceThe iface.
Returns

Gets the instance for a given class

Template Parameters
T
Returns
Type Constraints
T :class 
object Org.Apache.REEF.Tang.Interface.IInjector.GetNamedInstance ( Type  t)

Get an instance of the named parameter.

Parameters
tt, it must inherit from Name
Returns

Get an instance of the named parameter.

Template Parameters
T
U
Parameters
clazzThe clazz.
Returns
Type Constraints
T :Name<U> 

Gets the named instance.

Template Parameters
T
U
Returns
Type Constraints
T :Name<U> 
bool Org.Apache.REEF.Tang.Interface.IInjector.IsInjectable ( string  name)

Determines whether the specified name is injectable.

Parameters
nameThe name.
Returns
true if the specified name is injectable; otherwise, false.
bool Org.Apache.REEF.Tang.Interface.IInjector.IsInjectable ( Type  clazz)

Determines whether the specified clazz is injectable.

Parameters
clazzThe clazz.
Returns
true if the specified clazz is injectable; otherwise, false.
bool Org.Apache.REEF.Tang.Interface.IInjector.IsParameterSet ( string  name)

Determines whether [is parameter set] [the specified name].

Parameters
nameThe name.
Returns
true if [is parameter set] [the specified name]; otherwise, false.
bool Org.Apache.REEF.Tang.Interface.IInjector.IsParameterSet ( Type  name)

Determines whether [is parameter set] [the specified name].

Parameters
nameThe name.
Returns
true if [is parameter set] [the specified name]; otherwise, false.

The documentation for this interface was generated from the following file: