|
||||||||||
| 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 | |
|---|---|
private Map<String,ActionConfig> |
actionConfigs
|
private String |
defaultActionRef
|
private String |
defaultClassRef
|
private String |
defaultInterceptorRef
|
private String |
defaultResultType
|
private List<ExceptionMappingConfig> |
globalExceptionMappingConfigs
|
private Map<String,ResultConfig> |
globalResultConfigs
|
private Map<String,Object> |
interceptorConfigs
|
private boolean |
isAbstract
|
private static Logger |
LOG
|
private String |
name
|
private String |
namespace
|
private boolean |
needsRefresh
|
private List<PackageConfig> |
parents
|
private 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 |
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 |
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 |
|---|
private static final Logger LOG
private Map<String,ActionConfig> actionConfigs
private Map<String,ResultConfig> globalResultConfigs
private Map<String,Object> interceptorConfigs
private Map<String,ResultTypeConfig> resultTypeConfigs
private List<ExceptionMappingConfig> globalExceptionMappingConfigs
private List<PackageConfig> parents
private String defaultInterceptorRef
private String defaultActionRef
private String defaultResultType
private String defaultClassRef
private String name
private String namespace
private boolean isAbstract
private 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 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 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 | |||||||||