Class ResourceMethodInvocationHandlerFactory
java.lang.Object
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory
- All Implemented Interfaces:
ResourceMethodInvocationHandlerProvider
@Singleton
public final class ResourceMethodInvocationHandlerFactory
extends Object
implements ResourceMethodInvocationHandlerProvider
An injectable
resource method
invocation handler provider factory.
When invoked, the factory iterates over the registered custom resource method invocation handler providers invoking their
createPatternFor(...)
methods and returns the first non-null invocation handler instance retrieved from the providers. If no custom providers
are available, or if none of the providers returns a non-null invocation handler,
in such case a default invocation handler provided by the factory is returned.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final InvocationHandlerprivate static final Loggerprivate final LazyValue<Set<ResourceMethodInvocationHandlerProvider>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the invocation handler for the invocable resource method.
-
Field Details
-
DEFAULT_HANDLER
-
LOGGER
-
providers
-
-
Constructor Details
-
ResourceMethodInvocationHandlerFactory
ResourceMethodInvocationHandlerFactory(InjectionManager injectionManager)
-
-
Method Details
-
create
Description copied from interface:ResourceMethodInvocationHandlerProviderGet the invocation handler for the invocable resource method. May returnnullin case the method is not supported by the provider for whatever reason.- Specified by:
createin interfaceResourceMethodInvocationHandlerProvider- Parameters:
resourceMethod- invocable resource method.- Returns:
- invocation handler for the invocable resource method.
-