|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.util.location.Located
com.opensymphony.xwork2.config.entities.PackageConfig
public class PackageConfig
Configuration for Package.
In the xml configuration file this is defined as thepackage tag.
| Nested Class Summary | |
|---|---|
static class |
PackageConfig.Builder
The builder for this object. |
| Field Summary | |
|---|---|
protected Map<String,ActionConfig> |
actionConfigs
|
protected String |
defaultActionRef
|
protected String |
defaultClassRef
|
protected String |
defaultInterceptorRef
|
protected String |
defaultResultType
|
protected List<ExceptionMappingConfig> |
globalExceptionMappingConfigs
|
protected Map<String,ResultConfig> |
globalResultConfigs
|
protected Map<String,Object> |
interceptorConfigs
|
protected boolean |
isAbstract
|
protected String |
name
|
protected String |
namespace
|
protected boolean |
needsRefresh
|
protected List<PackageConfig> |
parents
|
protected Map<String,ResultTypeConfig> |
resultTypeConfigs
|
| Fields inherited from class com.opensymphony.xwork2.util.location.Located |
|---|
location |
| Constructor Summary | |
|---|---|
protected |
PackageConfig(PackageConfig orig)
|
protected |
PackageConfig(String name)
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
Map<String,ActionConfig> |
getActionConfigs()
|
Map<String,ActionConfig> |
getAllActionConfigs()
returns the Map of all the ActionConfigs available in the current package. |
List<ExceptionMappingConfig> |
getAllExceptionMappingConfigs()
returns the List of all the ExceptionMappingConfigs available in the current package. |
Map<String,ResultConfig> |
getAllGlobalResults()
returns the Map of all the global ResultConfigs available in the current package. |
Map<String,Object> |
getAllInterceptorConfigs()
returns the Map of all InterceptorConfigs and InterceptorStackConfigs available in the current package. |
Map<String,ResultTypeConfig> |
getAllResultTypeConfigs()
returns the Map of all the ResultTypeConfigs available in the current package. |
String |
getDefaultActionRef()
|
String |
getDefaultClassRef()
|
String |
getDefaultInterceptorRef()
|
String |
getDefaultResultType()
Returns the default result type for this package. |
String |
getFullDefaultActionRef()
gets the default action-ref name. |
String |
getFullDefaultInterceptorRef()
gets the default interceptor-ref name. |
String |
getFullDefaultResultType()
Returns the default result type for this package. |
List<ExceptionMappingConfig> |
getGlobalExceptionMappingConfigs()
gets the ExceptionMappingConfigs local to this package |
Map<String,ResultConfig> |
getGlobalResultConfigs()
gets the global ResultConfigs local to this package |
Object |
getInterceptorConfig(String name)
Gets an interceptor configuration object. |
Map<String,Object> |
getInterceptorConfigs()
gets the InterceptorConfigs and InterceptorStackConfigs local to this package |
String |
getName()
|
String |
getNamespace()
|
List<PackageConfig> |
getParents()
|
Map<String,ResultTypeConfig> |
getResultTypeConfigs()
gets the ResultTypeConfigs local to this package |
int |
hashCode()
|
boolean |
isAbstract()
|
boolean |
isNeedsRefresh()
|
String |
toString()
|
| Methods inherited from class com.opensymphony.xwork2.util.location.Located |
|---|
getLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,ActionConfig> actionConfigs
protected Map<String,ResultConfig> globalResultConfigs
protected Map<String,Object> interceptorConfigs
protected Map<String,ResultTypeConfig> resultTypeConfigs
protected List<ExceptionMappingConfig> globalExceptionMappingConfigs
protected List<PackageConfig> parents
protected String defaultInterceptorRef
protected String defaultActionRef
protected String defaultResultType
protected String defaultClassRef
protected String name
protected String namespace
protected boolean isAbstract
protected boolean needsRefresh
| Constructor Detail |
|---|
protected PackageConfig(String name)
protected PackageConfig(PackageConfig orig)
| Method Detail |
|---|
public boolean isAbstract()
public Map<String,ActionConfig> getActionConfigs()
public Map<String,ActionConfig> getAllActionConfigs()
ActionConfigpublic Map<String,ResultConfig> getAllGlobalResults()
ResultConfigpublic Map<String,Object> getAllInterceptorConfigs()
InterceptorConfig,
InterceptorStackConfigpublic Map<String,ResultTypeConfig> getAllResultTypeConfigs()
ResultTypeConfigpublic List<ExceptionMappingConfig> getAllExceptionMappingConfigs()
ExceptionMappingConfigpublic String getDefaultInterceptorRef()
public String getDefaultActionRef()
public String getDefaultClassRef()
public String getDefaultResultType()
public String getFullDefaultInterceptorRef()
public String getFullDefaultActionRef()
public String getFullDefaultResultType()
public Map<String,ResultConfig> getGlobalResultConfigs()
ResultConfigpublic Map<String,Object> getInterceptorConfigs()
InterceptorConfig,
InterceptorStackConfigpublic String getName()
public String getNamespace()
public List<PackageConfig> getParents()
public Map<String,ResultTypeConfig> getResultTypeConfigs()
ResultTypeConfigpublic boolean isNeedsRefresh()
public List<ExceptionMappingConfig> getGlobalExceptionMappingConfigs()
ExceptionMappingConfigpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic Object getInterceptorConfig(String name)
InterceptorLocator
getInterceptorConfig in interface InterceptorLocatorname - The interceptor or interceptor stack name
InterceptorConfig or InterceptorStackConfig object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||