Package ddf.action
Interface MultiActionProvider
public interface MultiActionProvider
This class provides an
Action for a given subject. Objects that the ActionProvider can handle are not restricted to a particular class and can be whatever the
ActionProvider is able to handle. -
Method Summary
Modifier and TypeMethodDescription<T> booleancanHandle(T subject) Checks if anActionProvidersupports a given subject.getActions(T subject) Assumes thatcanHandle(Object)for the has already been checked.getId()
-
Method Details
-
getActions
Assumes thatcanHandle(Object)for the has already been checked.- Parameters:
subject- object for which theActionProvideris requested to provide anAction- Returns:
- an
Actionobject. If no action can be taken on the input, thenCollections.emptyList()shall be returned
-
getId
String getId()- Returns:
- a unique identifier to distinguish the type of service this
ActionProviderprovides
-
canHandle
<T> boolean canHandle(T subject) Checks if anActionProvidersupports a given subject.- Parameters:
subject- the input to check- Returns:
- true if is supported, false otherwise.
-