|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.MethodHandler
public abstract class MethodHandler
Resource method handler model.
| Constructor Summary | |
|---|---|
MethodHandler()
|
|
| Method Summary | |
|---|---|
void |
accept(ResourceModelVisitor visitor)
A component should call the visitor back with an appropriate visitor interface method to give it a chance to process. |
static MethodHandler |
create(java.lang.Class<?> handlerClass)
Create a class-based method handler from a class. |
static MethodHandler |
create(java.lang.Class<?> handlerClass,
boolean disableParamDecoding)
Create a class-based method handler from a class. |
static MethodHandler |
create(java.lang.Object handlerInstance)
Create a instance-based (singleton) method handler from a class. |
static MethodHandler |
create(java.lang.Object handlerInstance,
java.lang.Class<?> handlerClass)
Create a instance-based (singleton) method handler from a class. |
java.util.List<? extends ResourceModelComponent> |
getComponents()
Should return all existing resource model sub-components. |
java.util.List<HandlerConstructor> |
getConstructors()
Get the resource method handler constructors. |
abstract java.lang.Class<?> |
getHandlerClass()
Get the resource method handler class. |
abstract java.lang.Object |
getInstance(org.glassfish.hk2.inject.Injector injector)
Get the injected resource method handler instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodHandler()
| Method Detail |
|---|
public static MethodHandler create(java.lang.Class<?> handlerClass)
handlerClass - method handler class.
public static MethodHandler create(java.lang.Class<?> handlerClass,
boolean disableParamDecoding)
handlerClass - method handler class.disableParamDecoding - if set to true, any injected constructor
parameters must be kept encoded and must not be automatically decoded.
public static MethodHandler create(java.lang.Object handlerInstance)
handlerInstance - method handler instance (singleton).
public static MethodHandler create(java.lang.Object handlerInstance,
java.lang.Class<?> handlerClass)
handlerInstance - method handler instance (singleton).handlerClass - declared handler class.
public abstract java.lang.Class<?> getHandlerClass()
public java.util.List<HandlerConstructor> getConstructors()
public abstract java.lang.Object getInstance(org.glassfish.hk2.inject.Injector injector)
injector - injector that can be used to inject the instance.
public java.util.List<? extends ResourceModelComponent> getComponents()
ResourceModelComponent
getComponents in interface ResourceModelComponentpublic void accept(ResourceModelVisitor visitor)
ResourceModelComponent
accept in interface ResourceModelComponentvisitor - resource model visitor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||