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

private static class MethodHandler.InstanceBasedMethodHandler extends MethodHandler
  • Field Details

    • handler

      private final Object handler
    • handlerClass

      private final Class<?> handlerClass
  • Constructor Details

  • Method Details

    • getHandlerClass

      public Class<?> getHandlerClass()
      Description copied from class: MethodHandler
      Get the resource method handler class.
      Specified by:
      getHandlerClass in class MethodHandler
      Returns:
      resource method handler class.
    • getHandlerInstance

      protected Object getHandlerInstance()
      Description copied from class: MethodHandler
      Get the raw handler instance that is backing this method handler.
      Specified by:
      getHandlerInstance in class MethodHandler
      Returns:
      raw handler instance. May return null if the handler is class-based.
    • getInstance

      public Object getInstance(InjectionManager injectionManager)
      Description copied from class: MethodHandler
      Get the injected resource method handler instance.
      Specified by:
      getInstance in class MethodHandler
      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 handler creates instances based on classes.
      Specified by:
      isClassBased in class MethodHandler
      Returns:
      True is instances returned by this method handler are created from classes given to InjectionManager, false otherwise (for example when method handler was initialized from instance)
    • toString

      public String toString()
      Overrides:
      toString in class Object