Package org.jgrapes.http.annotation
Class RequestHandler.Evaluator.Scope
java.lang.Object
org.jgrapes.http.annotation.RequestHandler.Evaluator.Scope
- All Implemented Interfaces:
HandlerScope
,InvocationFilter
- Enclosing class:
RequestHandler.Evaluator
public static class RequestHandler.Evaluator.Scope
extends Object
implements HandlerScope, InvocationFilter
The scope implementation.
-
Constructor Summary
ConstructorDescriptionScope
(ComponentType component, Method method, RequestHandler annotation, Map<Class<? extends Channel>, Object[]> channelReplacements, String pattern) Instantiates a new scope. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Matches the given event and channels against the criteria for events and channels of this handler scope.boolean
Matches the given event against the criteria for events, taking properties into account that were left out byHandlerScope.includes(Eligible, Eligible[])
.toString()
-
Constructor Details
-
Scope
public Scope(ComponentType component, Method method, RequestHandler annotation, Map<Class<? extends Channel>, Object[]> channelReplacements, String pattern) Instantiates a new scope.- Parameters:
component
- the componentmethod
- the methodannotation
- the annotationchannelReplacements
- the channel replacementspattern
- the pattern
-
-
Method Details
-
includes
Description copied from interface:HandlerScope
Matches the given event and channels against the criteria for events and channels of this handler scope.- Specified by:
includes
in interfaceHandlerScope
- Parameters:
event
- the eventchannels
- the channels- Returns:
- true, if successful
-
includes
Description copied from interface:InvocationFilter
Matches the given event against the criteria for events, taking properties into account that were left out byHandlerScope.includes(Eligible, Eligible[])
.Note that this method is called only with events that have passed the invocation of
HandlerScope.includes(Eligible, Eligible[])
. It is therefore not required to re-test conditions already checked byHandlerScope.includes(Eligible, Eligible[])
.- Specified by:
includes
in interfaceInvocationFilter
- Parameters:
event
- the event- Returns:
- true, if successful
-
toString
-