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
ConstructorsConstructorDescriptionScope(ComponentType component, Method method, RequestHandler annotation, Map<Class<? extends Channel>, Object[]> channelReplacements, String pattern) Instantiates a new scope. -
Method Summary
Modifier and TypeMethodDescriptionbooleanMatches the given event and channels against the criteria for events and channels of this handler scope.booleanMatches 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:HandlerScopeMatches the given event and channels against the criteria for events and channels of this handler scope.- Specified by:
includesin interfaceHandlerScope- Parameters:
event- the eventchannels- the channels- Returns:
- true, if successful
-
includes
Description copied from interface:InvocationFilterMatches 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:
includesin interfaceInvocationFilter- Parameters:
event- the event- Returns:
- true, if successful
-
toString
-