Package org.guvnor.ala.ui.handler
Interface ProviderHandler
-
public interface ProviderHandlerBase interface for defining a provider type handler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptProviderType(ProviderTypeKey providerTypeKey)Indicates if current handler can manage a given provider type.intgetPriority()Gets the priority of current handler.
-
-
-
Method Detail
-
getPriority
int getPriority()
Gets the priority of current handler. The priority might be used to decide which handler to apply in cases where there are many handlers registered for a given provider. The highest priority one will be applied.- Returns:
- an integer representing current handler priority. Priorities are correlative to the integers natural order.
-
acceptProviderType
boolean acceptProviderType(ProviderTypeKey providerTypeKey)
Indicates if current handler can manage a given provider type.- Parameters:
providerTypeKey- a provider type key.- Returns:
- true if current handle can manage the given provider type, false in any other case.
-
-