com.sun.jersey.spi.inject
Interface InjectableProvider<A extends java.lang.annotation.Annotation,C>

All Known Implementing Classes:
SingletonTypeInjectableProvider

public interface InjectableProvider<A extends java.lang.annotation.Annotation,C>

An injectable provider provides an injectable which in turn may be used to obtain the instance to inject onto a field, bean setter method, parameter of a constructor, or parameter of a method.


Method Summary
 Injectable getInjectable(ComponentContext ic, A a, C c)
          Get an injectable.
 ComponentProvider.Scope getScope()
          Get the scope of the injectable provider.
 

Method Detail

getScope

ComponentProvider.Scope getScope()
Get the scope of the injectable provider.

Returns:
the scope.

getInjectable

Injectable getInjectable(ComponentContext ic,
                         A a,
                         C c)
Get an injectable.

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.