private static class MethodHandler.InstanceBasedMethodHandler extends MethodHandler
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
handler |
private java.lang.Class<?> |
handlerClass |
Constructor and Description |
---|
InstanceBasedMethodHandler(java.lang.Object handler,
java.lang.Class<?> handlerClass,
java.util.Collection<Parameter> handlerParameters) |
InstanceBasedMethodHandler(java.lang.Object handler,
java.util.Collection<Parameter> handlerParameters) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getHandlerClass()
Get the resource method handler class.
|
protected java.lang.Object |
getHandlerInstance()
Get the raw handler instance that is backing this method handler.
|
java.lang.Object |
getInstance(InjectionManager injectionManager)
Get the injected resource method handler instance.
|
boolean |
isClassBased()
Return whether the method handler
creates instances
based on classes . |
java.lang.String |
toString() |
accept, create, create, create, create, create, create, create, create, getComponents, getConstructors, getParameters
private final java.lang.Object handler
private final java.lang.Class<?> handlerClass
public InstanceBasedMethodHandler(java.lang.Object handler, java.util.Collection<Parameter> handlerParameters)
public InstanceBasedMethodHandler(java.lang.Object handler, java.lang.Class<?> handlerClass, java.util.Collection<Parameter> handlerParameters)
public java.lang.Class<?> getHandlerClass()
MethodHandler
getHandlerClass
in class MethodHandler
protected java.lang.Object getHandlerInstance()
MethodHandler
getHandlerInstance
in class MethodHandler
null
if the handler is
class-based
.public java.lang.Object getInstance(InjectionManager injectionManager)
MethodHandler
getInstance
in class MethodHandler
injectionManager
- injection manager that can be used to inject get the instance.public boolean isClassBased()
MethodHandler
creates instances
based on classes
.isClassBased
in class MethodHandler
classes
given to
InjectionManager
, false otherwise (for example when method handler was initialized from instance)public java.lang.String toString()
toString
in class java.lang.Object