Class HandlerConstructor
java.lang.Object
org.glassfish.jersey.server.model.HandlerConstructor
- All Implemented Interfaces:
Parameterized
,ResourceModelComponent
public final class HandlerConstructor
extends Object
implements Parameterized, ResourceModelComponent
Abstraction for a resource handler class constructor.
- Author:
- Jakub Podlesak, Marek Potociar
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ResourceModelVisitor visitor) A component should call the visitor back with an appropriate visitor interface method to give it a chance to process.Should return all existing resource model sub-components.Constructor<?>
Get the underlying java constructor.Provides access to all parameters associated with given Parameterized instance.boolean
Provides information on presence of an entity parameter.
-
Method Details
-
getConstructor
Get the underlying java constructor.- Returns:
- underlying java constructor.
-
getParameters
Description copied from interface:Parameterized
Provides access to all parameters associated with given Parameterized instance.- Specified by:
getParameters
in interfaceParameterized
- Returns:
- list of actual parameters
-
requiresEntity
public boolean requiresEntity()Description copied from interface:Parameterized
Provides information on presence of an entity parameter.- Specified by:
requiresEntity
in interfaceParameterized
- Returns:
- true if entity parameter is present, false otherwise
-
accept
Description copied from interface:ResourceModelComponent
A component should call the visitor back with an appropriate visitor interface method to give it a chance to process.- Specified by:
accept
in interfaceResourceModelComponent
- Parameters:
visitor
- resource model visitor.
-
getComponents
Description copied from interface:ResourceModelComponent
Should return all existing resource model sub-components.- Specified by:
getComponents
in interfaceResourceModelComponent
- Returns:
- list of all sub-components
-