Class MethodHandler.InstanceBasedMethodHandler
java.lang.Object
org.glassfish.jersey.server.model.MethodHandler
org.glassfish.jersey.server.model.MethodHandler.InstanceBasedMethodHandler
- All Implemented Interfaces:
ResourceModelComponent
- Enclosing class:
- MethodHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstanceBasedMethodHandler
(Object handler, Class<?> handlerClass, Collection<Parameter> handlerParameters) InstanceBasedMethodHandler
(Object handler, Collection<Parameter> handlerParameters) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Get the resource method handler class.protected Object
Get the raw handler instance that is backing this method handler.getInstance
(InjectionManager injectionManager) Get the injected resource method handler instance.boolean
Return whether the method handlercreates instances
based onclasses
.toString()
Methods inherited from class org.glassfish.jersey.server.model.MethodHandler
accept, create, create, create, create, create, create, create, create, getComponents, getConstructors, getParameters
-
Field Details
-
handler
-
handlerClass
-
-
Constructor Details
-
InstanceBasedMethodHandler
-
InstanceBasedMethodHandler
public InstanceBasedMethodHandler(Object handler, Class<?> handlerClass, Collection<Parameter> handlerParameters)
-
-
Method Details
-
getHandlerClass
Description copied from class:MethodHandler
Get the resource method handler class.- Specified by:
getHandlerClass
in classMethodHandler
- Returns:
- resource method handler class.
-
getHandlerInstance
Description copied from class:MethodHandler
Get the raw handler instance that is backing this method handler.- Specified by:
getHandlerInstance
in classMethodHandler
- Returns:
- raw handler instance. May return
null
if the handler isclass-based
.
-
getInstance
Description copied from class:MethodHandler
Get the injected resource method handler instance.- Specified by:
getInstance
in classMethodHandler
- Parameters:
injectionManager
- injection manager that can be used to inject get the instance.- Returns:
- injected resource method handler instance.
-
isClassBased
public boolean isClassBased()Description copied from class:MethodHandler
Return whether the method handlercreates instances
based onclasses
.- Specified by:
isClassBased
in classMethodHandler
- Returns:
- True is instances returned by this method handler are created from
classes
given toInjectionManager
, false otherwise (for example when method handler was initialized from instance)
-
toString
-