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

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

public class EagerSingletonProvider<T>
extends AbstractScopedProvider<T>


Field Summary
 
Fields inherited from class org.apache.commons.inject.impl.AbstractScopedProvider
initialized
 
Constructor Summary
EagerSingletonProvider(IProvider<T> pBaseProvider)
           
 
Method Summary
 T get()
           
 T get(IInjector pInjector)
           
 void init(IInjector pInjector)
           
 
Methods inherited from class org.apache.commons.inject.impl.AbstractScopedProvider
getInjector, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EagerSingletonProvider

public EagerSingletonProvider(IProvider<T> pBaseProvider)
Method Detail

init

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

get

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

get

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


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