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 ObjectGet the raw handler instance that is backing this method handler.getInstance(InjectionManager injectionManager) Get the injected resource method handler instance.booleanReturn whether the method handlercreates instancesbased 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:MethodHandlerGet the resource method handler class.- Specified by:
getHandlerClassin classMethodHandler- Returns:
- resource method handler class.
-
getHandlerInstance
Description copied from class:MethodHandlerGet the raw handler instance that is backing this method handler.- Specified by:
getHandlerInstancein classMethodHandler- Returns:
- raw handler instance. May return
nullif the handler isclass-based.
-
getInstance
Description copied from class:MethodHandlerGet the injected resource method handler instance.- Specified by:
getInstancein 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:MethodHandlerReturn whether the method handlercreates instancesbased onclasses.- Specified by:
isClassBasedin classMethodHandler- Returns:
- True is instances returned by this method handler are created from
classesgiven toInjectionManager, false otherwise (for example when method handler was initialized from instance)
-
toString
-