org.apache.commons.inject.impl.bind
Class DefaultBinding<T>

java.lang.Object
  extended by org.apache.commons.inject.impl.bind.DefaultBinding<T>
All Implemented Interfaces:
IBinding<T>, IInjectorAware

public class DefaultBinding<T>
extends Object
implements IBinding<T>, IInjectorAware

Default implementation of IBinding; basically a simple wrapper for instances of IProvider, and IPoint.


Constructor Summary
DefaultBinding(IProvider<T> pProvider, IPoint<T> pPoint)
           
 
Method Summary
 IPoint<T> getPoint()
          Returns the point, which can be used to inject members into an instance that has been created previously.
 IProvider<T> getProvider()
          Returns the provider, which can be used to create the instance.
 void init(IInjector pInjector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBinding

public DefaultBinding(IProvider<T> pProvider,
                      IPoint<T> pPoint)
Method Detail

getProvider

public IProvider<T> getProvider()
Description copied from interface: IBinding
Returns the provider, which can be used to create the instance.

Specified by:
getProvider in interface IBinding<T>

getPoint

public IPoint<T> getPoint()
Description copied from interface: IBinding
Returns the point, which can be used to inject members into an instance that has been created previously.

Specified by:
getPoint in interface IBinding<T>

init

public void init(IInjector pInjector)
Specified by:
init in interface IInjectorAware


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.