|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConventionsService
This interface defines the conventions that are used by the convention plugin. In most cases the methods on this class will provide the best default for any values and also handle locating overrides of the default via the annotations that are part of the plugin.
Method Summary | |
---|---|
String |
determineResultPath(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig)
Delegates to the other method but first looks up the Action's class using the given class name. |
String |
determineResultPath(Class<?> actionClass)
Locates the result location from annotations on the action class or the package or returns the default if no annotations are present. |
Map<String,com.opensymphony.xwork2.config.entities.ResultTypeConfig> |
getResultTypesByExtension(com.opensymphony.xwork2.config.entities.PackageConfig packageConfig)
Returns a mapping between the result type strings and the ResultTypeConfig instances
based on the PackageConfig given. |
Method Detail |
---|
String determineResultPath(Class<?> actionClass)
actionClass
- The action class.
String determineResultPath(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig)
actionConfig
- (Optional) The configuration for the action that the result is being
built for or null if the default result path is needed.
Map<String,com.opensymphony.xwork2.config.entities.ResultTypeConfig> getResultTypesByExtension(com.opensymphony.xwork2.config.entities.PackageConfig packageConfig)
ResultTypeConfig
instances
based on the PackageConfig
given.
packageConfig
- The PackageConfig to get the result types for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |