T - the qualifying element to specify what Resource Reference are handled by thus Handler
(e.g. Resource Type, Entity Resource Action)T - the type of supported items@Role public interface ResourceReferenceHandler<T> extends Comparable<ResourceReferenceHandler>
ResourceReference.| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
The priority of execution relative to the other Handlers.
|
List<T> |
getSupportedResourceReferences() |
void |
handle(ResourceReference reference,
ResourceReferenceHandlerChain chain)
Executes the Handler on the passed Resource Reference.
|
compareToint getPriority()
List<T> getSupportedResourceReferences()
void handle(ResourceReference reference, ResourceReferenceHandlerChain chain) throws ResourceReferenceHandlerException
reference - the Resource Reference to handlechain - the Handler execution chain, needed to tell the next Handler in the chain to execute (similar to the
Filter Chain in the Servlet API)ResourceReferenceHandlerException - if an error happens during the Handler executionCopyright © 2004–2017 XWiki. All rights reserved.