|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ApplicationConfig.ActionDef
Le contrat de marquage des action, on utilise cette interface pour caracteriser une action. Ex :
public enum MyAppConfigAction implements ActionDef {
HELP(MyAppHelpAction.class.getName() + "#show", "-h", "--help");
public String action;
public String[] aliases;
private WikittyConfigAction(String action, String... aliases) {
this.action = action;
this.aliases = aliases;
}
@Override
public String getAction() {
return action;
}
@Override
public String[] getAliases() {
return aliases;
}
}
| Method Summary | |
|---|---|
String |
getAction()
Must return fully qualified method path : package.Class#method |
String[] |
getAliases()
Return all alias used to execute action. |
| Method Detail |
|---|
String getAction()
String[] getAliases()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||