Package ddf.action

Interface ActionProvider


public interface ActionProvider
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.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Action
    getAction(T subject)
     
     
  • Method Details

    • getAction

      <T> Action getAction(T subject)
      Parameters:
      subject - object for which the ActionProvider is requested to provide an Action
      Returns:
      an Action object. If no action can be taken on the input, then null shall be returned
    • getId

      String getId()
      Returns:
      a unique identifier to distinguish the type of service this ActionProvider provides