public class DefaultMuleConfiguration extends Object implements MuleConfiguration, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_STACKTRACE_FILTER |
static boolean |
DEFAULT_TRANSFORMATION_RESOLVE_NON_DIRECT |
static boolean |
flowTrace
When true, each event will keep trace information of the flows and components it traverses
to be shown as part of an exception message if an exception occurs.
|
static boolean |
fullStackTraces
When false (default), some internal Mule entries are removed from exception stacktraces for readability.
|
protected static Log |
logger |
static String[] |
stackTraceFilter
A comma-separated list of internal packages/classes which are removed from sanitized stacktraces.
|
static boolean |
verboseExceptions
When false (default), only a summary of the root exception
and trail is provided.
|
Constructor and Description |
---|
DefaultMuleConfiguration() |
DefaultMuleConfiguration(boolean containerMode) |
Modifier and Type | Method and Description |
---|---|
protected void |
applySystemProperties()
Apply any settings which come from the JVM system properties.
|
boolean |
equals(Object obj) |
String |
getDefaultEncoding() |
String |
getDefaultExceptionStrategyName() |
ObjectSerializer |
getDefaultObjectSerializer()
Returns the default instance of
ObjectSerializer to be
used. |
ProcessingStrategy |
getDefaultProcessingStrategy()
The default
ProcessingStrategy to be used by
all Flow s which doesn't specify otherwise |
int |
getDefaultQueueTimeout() |
int |
getDefaultResponseTimeout() |
int |
getDefaultTransactionTimeout() |
String |
getDomainId() |
Map<String,String> |
getExtendedProperties() |
String |
getExtendedProperty(String name) |
<T> T |
getExtension(Class<T> extensionType) |
List<Object> |
getExtensions() |
String |
getId() |
String |
getMuleHomeDirectory() |
int |
getShutdownTimeout() |
String |
getSystemModelType() |
String |
getSystemName() |
String |
getWorkingDirectory() |
int |
hashCode() |
boolean |
isAutoWrapMessageAwareTransform() |
boolean |
isCacheMessageAsBytes() |
boolean |
isCacheMessageOriginalPayload() |
boolean |
isClientMode() |
boolean |
isContainerMode()
A container mode implies multiple Mule apps running.
|
boolean |
isDisableTimeouts() |
boolean |
isEnableStreaming() |
boolean |
isEnricherPropagatesSessionVariableChanges() |
boolean |
isFlowEndingWithOneWayEndpointReturnsNull() |
static boolean |
isFlowTrace() |
boolean |
isStandalone()
Try to guess if we're embedded.
|
boolean |
isValidateExpressions() |
static boolean |
isVerboseExceptions() |
void |
setAutoWrapMessageAwareTransform(boolean autoWrapMessageAwareTransform) |
void |
setCacheMessageAsBytes(boolean cacheMessageAsBytes) |
void |
setCacheMessageOriginalPayload(boolean cacheMessageOriginalPayload) |
void |
setClientMode(boolean clientMode) |
void |
setClusterId(String clusterId) |
void |
setContainerMode(boolean containerMode)
The setting is only editable before the context has been initialized, change requests ignored afterwards.
|
void |
setDefaultEncoding(String encoding) |
void |
setDefaultExceptionStrategyName(String defaultExceptionStrategyName) |
void |
setDefaultObjectSerializer(ObjectSerializer defaultObjectSerializer) |
void |
setDefaultProcessingStrategy(ProcessingStrategy defaultProcessingStrategy) |
void |
setDefaultQueueTimeout(int defaultQueueTimeout) |
void |
setDefaultResponseTimeout(int responseTimeout) |
void |
setDefaultSynchronousEndpoints(boolean synchronous) |
void |
setDefaultTransactionTimeout(int defaultTransactionTimeout) |
void |
setDomainId(String domainId) |
void |
setEnableStreaming(boolean enableStreaming) |
void |
setEnricherPropagatesSessionVariableChanges(boolean enricherPropagatesSessionVariableChanges) |
void |
setExtendedProperties(Map<String,String> extendedProperties) |
void |
setExtendedProperty(String name,
String value) |
void |
setExtensions(List<Object> extensions) |
void |
setFlowEndingWithOneWayEndpointReturnsNull(boolean flowEndingWithOneWayEndpointReturnsNull) |
void |
setId(String id) |
void |
setMuleContext(MuleContext context) |
void |
setShutdownTimeout(int shutdownTimeout) |
void |
setSystemModelType(String systemModelType) |
void |
setUseExtendedTransformations(boolean useExtendedTransformations) |
void |
setWorkingDirectory(String workingDirectory) |
boolean |
useExtendedTransformations() |
protected void |
validateEncoding() |
protected void |
validateXML()
Mule needs a proper JAXP implementation and will complain when run with a plain JDK
1.4.
|
protected boolean |
verifyContextNotInitialized() |
protected boolean |
verifyContextNotStarted() |
public static final boolean DEFAULT_TRANSFORMATION_RESOLVE_NON_DIRECT
public static final String[] DEFAULT_STACKTRACE_FILTER
public static boolean fullStackTraces
stackTraceFilter
public static boolean verboseExceptions
public static boolean flowTrace
public static String[] stackTraceFilter
fullStackTraces
protected static transient Log logger
public DefaultMuleConfiguration()
public DefaultMuleConfiguration(boolean containerMode)
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
protected void applySystemProperties()
public static boolean isVerboseExceptions()
public static boolean isFlowTrace()
true
if the log is set to debug or if the system property mule.flowTrace
is set to
true
. false
otherwise.protected void validateEncoding() throws FatalException
FatalException
protected void validateXML() throws FatalException
-Djava.endorsed.dirs
. See the following URLs for more information:
FatalException
public void setDefaultSynchronousEndpoints(boolean synchronous)
public int getDefaultResponseTimeout()
getDefaultResponseTimeout
in interface MuleConfiguration
public void setDefaultResponseTimeout(int responseTimeout)
public String getWorkingDirectory()
getWorkingDirectory
in interface MuleConfiguration
public String getMuleHomeDirectory()
getMuleHomeDirectory
in interface MuleConfiguration
public void setWorkingDirectory(String workingDirectory)
public int getDefaultTransactionTimeout()
getDefaultTransactionTimeout
in interface MuleConfiguration
public void setDefaultTransactionTimeout(int defaultTransactionTimeout)
public boolean isValidateExpressions()
isValidateExpressions
in interface MuleConfiguration
public boolean isClientMode()
isClientMode
in interface MuleConfiguration
public String getDefaultEncoding()
getDefaultEncoding
in interface MuleConfiguration
public void setDefaultEncoding(String encoding)
public String getId()
getId
in interface MuleConfiguration
public void setId(String id)
public void setClusterId(String clusterId)
public String getDomainId()
getDomainId
in interface MuleConfiguration
public void setDomainId(String domainId)
public String getSystemModelType()
getSystemModelType
in interface MuleConfiguration
public void setSystemModelType(String systemModelType)
public void setClientMode(boolean clientMode)
public String getSystemName()
getSystemName
in interface MuleConfiguration
public boolean isAutoWrapMessageAwareTransform()
isAutoWrapMessageAwareTransform
in interface MuleConfiguration
public void setAutoWrapMessageAwareTransform(boolean autoWrapMessageAwareTransform)
public boolean isCacheMessageAsBytes()
isCacheMessageAsBytes
in interface MuleConfiguration
public void setCacheMessageAsBytes(boolean cacheMessageAsBytes)
public boolean isCacheMessageOriginalPayload()
isCacheMessageOriginalPayload
in interface MuleConfiguration
public void setCacheMessageOriginalPayload(boolean cacheMessageOriginalPayload)
public boolean isEnableStreaming()
isEnableStreaming
in interface MuleConfiguration
public void setEnableStreaming(boolean enableStreaming)
protected boolean verifyContextNotInitialized()
protected boolean verifyContextNotStarted()
public int getDefaultQueueTimeout()
getDefaultQueueTimeout
in interface MuleConfiguration
public void setDefaultQueueTimeout(int defaultQueueTimeout)
public int getShutdownTimeout()
getShutdownTimeout
in interface MuleConfiguration
public void setShutdownTimeout(int shutdownTimeout)
public boolean isContainerMode()
MuleConfiguration
isContainerMode
in interface MuleConfiguration
MuleConfiguration.isStandalone()
public void setContainerMode(boolean containerMode)
public boolean isStandalone()
MuleConfiguration
isStandalone
in interface MuleConfiguration
MuleConfiguration.isContainerMode()
public String getDefaultExceptionStrategyName()
getDefaultExceptionStrategyName
in interface MuleConfiguration
public void setUseExtendedTransformations(boolean useExtendedTransformations)
public boolean useExtendedTransformations()
useExtendedTransformations
in interface MuleConfiguration
public void setFlowEndingWithOneWayEndpointReturnsNull(boolean flowEndingWithOneWayEndpointReturnsNull)
public boolean isFlowEndingWithOneWayEndpointReturnsNull()
isFlowEndingWithOneWayEndpointReturnsNull
in interface MuleConfiguration
public void setDefaultExceptionStrategyName(String defaultExceptionStrategyName)
public boolean isEnricherPropagatesSessionVariableChanges()
isEnricherPropagatesSessionVariableChanges
in interface MuleConfiguration
public void setEnricherPropagatesSessionVariableChanges(boolean enricherPropagatesSessionVariableChanges)
public boolean isDisableTimeouts()
isDisableTimeouts
in interface MuleConfiguration
public ObjectSerializer getDefaultObjectSerializer()
ObjectSerializer
to be
used. This instance will be accessible through MuleContext.getObjectSerializer()
.
If not provided, if defaults to an instance of ObjectSerializer
getDefaultObjectSerializer
in interface MuleConfiguration
ObjectSerializer
public ProcessingStrategy getDefaultProcessingStrategy()
ProcessingStrategy
to be used by
all Flow
s which doesn't specify otherwisegetDefaultProcessingStrategy
in interface MuleConfiguration
ProcessingStrategy
public void setDefaultProcessingStrategy(ProcessingStrategy defaultProcessingStrategy)
public void setDefaultObjectSerializer(ObjectSerializer defaultObjectSerializer)
public <T> T getExtension(Class<T> extensionType)
getExtension
in interface MuleConfiguration
T
- type of the extensionextensionType
- class instance of the extension typeCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.