Class AbstractResourceReferenceHandler<T>

  • Type Parameters:
    T - the type of supported items
    All Implemented Interfaces:
    Comparable<ResourceReferenceHandler>, ResourceReferenceHandler<T>

    public abstract class AbstractResourceReferenceHandler<T>
    extends Object
    implements ResourceReferenceHandler<T>
    Helper to implement Resource Handlers, providing some default implementation. We recommend Handler writers to extend this class.
    Since:
    6.1M2
    Version:
    $Id: 7743b8641008f8cb368b99384215452f573b333b $
    • Constructor Detail

      • AbstractResourceReferenceHandler

        public AbstractResourceReferenceHandler()
    • Method Detail

      • getPriority

        public int getPriority()
        Description copied from interface: ResourceReferenceHandler
        The priority of execution relative to the other Handlers. The lowest values have the highest priorities and execute first. For example a Handler with a priority of 100 will execute before one with a priority of 500.
        Specified by:
        getPriority in interface ResourceReferenceHandler<T>
        Returns:
        the execution priority
      • setPriority

        public void setPriority​(int priority)
        Parameters:
        priority - the Handler priority to use (lower means execute before others), see getPriority()