public class SimpleActionBinding<T extends Action> extends Object implements ActionBinding<T>
| Constructor and Description |
|---|
SimpleActionBinding(String path,
Class<T> actionClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(ActionContext actionContext)
Create a new
Action using actionConstructor. |
Class<T> |
getActionClass() |
Constructor<T> |
getActionConstructor() |
String |
getPath() |
boolean |
supports(ActionContext actionContext)
Returns true when
ActionContext.getPath() equals path. |
public SimpleActionBinding(String path, Class<T> actionClass)
path - Supported path.actionClass - Create Action classpublic boolean supports(ActionContext actionContext)
ActionContext.getPath() equals path.supports in interface ActionBinding<T extends Action>actionContext - Action contextpublic T create(ActionContext actionContext)
Action using actionConstructor.create in interface ActionBinding<T extends Action>actionContext - Action contextpublic Constructor<T> getActionConstructor()
public Class<T> getActionClass()
Copyright © 2019. All rights reserved.