org.apache.commons.inject.impl
Class FactoryMethodProvider<T>

java.lang.Object
  extended by org.apache.commons.inject.impl.AbstractBaseProvider<T>
      extended by org.apache.commons.inject.impl.FactoryMethodProvider<T>
All Implemented Interfaces:
Provider<T>, IProvider<T>, IInjectorAware

public class FactoryMethodProvider<T>
extends AbstractBaseProvider<T>
implements IInjectorAware


Constructor Summary
FactoryMethodProvider(Constructor<T> pConstructor, IPoint<T> pPoint, IBinding<Object>[] pBindings)
           
FactoryMethodProvider(Method pMethod, IBinding<Object>[] pBindings, IPoint<T> pPoint)
           
 
Method Summary
 T get()
           
 void init(IInjector pInjector)
           
 
Methods inherited from class org.apache.commons.inject.impl.AbstractBaseProvider
get, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryMethodProvider

public FactoryMethodProvider(Constructor<T> pConstructor,
                             IPoint<T> pPoint,
                             IBinding<Object>[] pBindings)

FactoryMethodProvider

public FactoryMethodProvider(Method pMethod,
                             IBinding<Object>[] pBindings,
                             IPoint<T> pPoint)
Method Detail

get

public T get()
Specified by:
get in interface Provider<T>

init

public void init(IInjector pInjector)
Specified by:
init in interface IInjectorAware
Overrides:
init in class AbstractBaseProvider<T>


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