com.sun.jersey.core.impl.provider.xml
Class LazySingletonContextProvider<T>

java.lang.Object
  extended by com.sun.jersey.core.impl.provider.xml.LazySingletonContextProvider<T>
All Implemented Interfaces:
InjectableProvider<Context,Type>

public abstract class LazySingletonContextProvider<T>
extends Object
implements InjectableProvider<Context,Type>

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
protected LazySingletonContextProvider(Class<T> t)
           
 
Method Summary
 Injectable<T> getInjectable(ComponentContext ic, Context a, Type c)
          Get an injectable.
protected abstract  T getInstance()
           
 ComponentScope getScope()
          Get the scope of the injectable provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazySingletonContextProvider

protected LazySingletonContextProvider(Class<T> t)
Method Detail

getScope

public ComponentScope getScope()
Description copied from interface: InjectableProvider
Get the scope of the injectable provider.

Specified by:
getScope in interface InjectableProvider<Context,Type>
Returns:
the scope.

getInjectable

public Injectable<T> getInjectable(ComponentContext ic,
                                   Context a,
                                   Type c)
Description copied from interface: InjectableProvider
Get an injectable.

Specified by:
getInjectable in interface InjectableProvider<Context,Type>
Parameters:
ic - the injectable context
a - the annotation instance
c - the context instance
Returns:
an Injectable instance, otherwise null if an instance cannot be created.

getInstance

protected abstract T getInstance()


Copyright © 2013 Oracle Corporation. All Rights Reserved.