T- the qualifying element to distinguish a Resource Reference (e.g. Resource Type, Entity Resource Action)
@Role public interface ResourceReferenceHandlerManager<T>
ResourceReferenceHandlerimplementations to call in the right order.
void handle(ResourceReference reference) throws ResourceReferenceHandlerException
reference- the Resource Reference to handle
ResourceReferenceHandlerException- if an error happens during the Handler execution, for example if no Handler was found to handle the passed Resource Reference
boolean canHandle(T resourceReferenceQualifier)
resourceReferenceQualifier- the qualifying element to distinguish a Resource Reference for which we wish to check if we can handle it or not (ie we have a Handler available for it). This can be for example the Resource Type or for an Entity Resource it can be an Entity Resource Action
Copyright © 2004–2017 XWiki. All rights reserved.