|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.AbstractJavaResourceMethodDispatcherProvider
public abstract class AbstractJavaResourceMethodDispatcherProvider
An abstract implementation of ResourceMethodDispatcher.Provider that
creates instances of ResourceMethodDispatcher.
Implementing classes are required to override the
#getInjectableValuesProvider(com.sun.jersey.api.model.AbstractResourceMethod)
method to return a InjectableValuesProvider associated with the parameters
of the abstract resource method.
| Constructor Summary | |
|---|---|
AbstractJavaResourceMethodDispatcherProvider()
|
|
| Method Summary | |
|---|---|
ResourceMethodDispatcher |
create(InvocableResourceMethod resourceMethod,
InvocationHandler invocationHandler)
Create a resource method dispatcher for
a given invocable resource method. |
protected abstract List<org.glassfish.hk2.Factory<?>> |
createValueProviders(InvocableResourceMethod abstractResourceMethod)
Get the injectable values provider for an abstract resource method. |
protected org.glassfish.hk2.Services |
getServices()
Get the application-configured HK2 Services. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJavaResourceMethodDispatcherProvider()
| Method Detail |
|---|
public ResourceMethodDispatcher create(InvocableResourceMethod resourceMethod,
InvocationHandler invocationHandler)
ResourceMethodDispatcher.Providerresource method dispatcher for
a given invocable resource method.
If the provider supports the invocable resource method, it will
return a new non-null dispatcher instance configured to invoke the supplied
invocable resource method via the provided invocation handler whenever the
dispatch(...)
method is called on that dispatcher instance.
create in interface ResourceMethodDispatcher.ProviderresourceMethod - the invocable resource method.invocationHandler - invocation handler to be used for the resource method invocation.
null if it could not be
created for the given resource method.protected final org.glassfish.hk2.Services getServices()
protected abstract List<org.glassfish.hk2.Factory<?>> createValueProviders(InvocableResourceMethod abstractResourceMethod)
abstractResourceMethod - the abstract resource method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||