public static class PackageConfig.Builder extends Object implements InterceptorLocator
build()
method to create the object.Modifier and Type | Field and Description |
---|---|
protected PackageConfig |
target |
Constructor and Description |
---|
Builder(PackageConfig config) |
Builder(String name) |
protected PackageConfig target
public Builder(String name)
public Builder(PackageConfig config)
public PackageConfig.Builder name(String name)
public PackageConfig.Builder isAbstract(boolean isAbstract)
public PackageConfig.Builder defaultInterceptorRef(String name)
public PackageConfig.Builder defaultActionRef(String name)
public PackageConfig.Builder defaultClassRef(String defaultClassRef)
public PackageConfig.Builder defaultResultType(String defaultResultType)
defaultResultType
- set the default result typepublic PackageConfig.Builder namespace(String namespace)
public PackageConfig.Builder needsRefresh(boolean needsRefresh)
public PackageConfig.Builder addActionConfig(String name, ActionConfig action)
public PackageConfig.Builder addParents(List<PackageConfig> parents)
public PackageConfig.Builder addGlobalResultConfig(ResultConfig resultConfig)
public PackageConfig.Builder addGlobalResultConfigs(Map<String,ResultConfig> resultConfigs)
public Set<String> getParentsAllowedMethods(List<PackageConfig> parents)
public PackageConfig.Builder addGlobalAllowedMethods(Set<String> allowedMethods)
public PackageConfig.Builder addExceptionMappingConfig(ExceptionMappingConfig exceptionMappingConfig)
public PackageConfig.Builder addGlobalExceptionMappingConfigs(List<ExceptionMappingConfig> exceptionMappingConfigs)
public PackageConfig.Builder addInterceptorConfig(InterceptorConfig config)
public PackageConfig.Builder addInterceptorStackConfig(InterceptorStackConfig config)
public PackageConfig.Builder addParent(PackageConfig parent)
public PackageConfig.Builder addResultTypeConfig(ResultTypeConfig config)
public PackageConfig.Builder location(Location loc)
public boolean isNeedsRefresh()
public String getDefaultClassRef()
public String getName()
public String getNamespace()
public String getFullDefaultResultType()
public ResultTypeConfig getResultType(String type)
public Object getInterceptorConfig(String name)
InterceptorLocator
getInterceptorConfig
in interface InterceptorLocator
name
- The interceptor or interceptor stack nameInterceptorConfig
or InterceptorStackConfig
objectpublic PackageConfig.Builder strictMethodInvocation(boolean strict)
public boolean isStrictMethodInvocation()
public PackageConfig build()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.