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

java.lang.Object
  extended by org.apache.commons.inject.impl.AbstractScopedProvider<T>
All Implemented Interfaces:
Provider<T>, IProvider<T>, IInjectorAware
Direct Known Subclasses:
EagerSingletonProvider, LazySingletonProvider, PerCallProvider

public abstract class AbstractScopedProvider<T>
extends Object
implements IProvider<T>, IInjectorAware


Field Summary
protected  boolean initialized
           
 
Constructor Summary
AbstractScopedProvider(IProvider<T> pBaseProvider)
           
 
Method Summary
 T get()
           
 T get(IInjector pInjector)
           
protected  IInjector getInjector()
           
 Class<? extends T> getType()
           
 void init(IInjector pInjector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

protected boolean initialized
Constructor Detail

AbstractScopedProvider

public AbstractScopedProvider(IProvider<T> pBaseProvider)
Method Detail

getInjector

protected IInjector getInjector()

get

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

getType

public Class<? extends T> getType()
Specified by:
getType in interface IProvider<T>

get

public T get(IInjector pInjector)
Specified by:
get in interface IProvider<T>

init

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


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