org.apache.commons.inject.impl.bind
Class DefaultBinding<T>
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBinding
public DefaultBinding(IProvider<T> pProvider,
IPoint<T> pPoint)
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.