public static class ArtifactContextConfiguration.ArtifactContextConfigurationBuilder extends Object
ArtifactContextConfiguration
.Constructor and Description |
---|
ArtifactContextConfigurationBuilder() |
public ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setMuleContext(MuleContext muleContext)
muleContext
- the artifact MuleContext
this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setConfigResources(String[] configResources)
configResources
- configuration files of the artifact.this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setArtifactDeclaration(ArtifactDeclaration artifactDeclaration)
artifactDeclaration
- configuration of the artifact.this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setArtifactProperties(Map<String,String> artifactProperties)
artifactProperties
- properties of the artifact. This may be used on runtime or by the artifact configuration.this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setArtifactType(ArtifactType artifactType)
artifactType
- the type of the artifact. The artifact type restricts the functionality available in the artifact
context.this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setEnableLazyInitialization(boolean enableLazyInitialization)
ArtifactContext
is created lazily then not all the services or configuration components are created. Only
those requested by subsequent calls to ArtifactContext
get created. This means components are created on demand
based on request calls to each service exposed.enableLazyInitialization
- true if the ArtifactContext
must be created lazily.this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setDisableXmlValidations(boolean disableXmlValidations)
ArtifactContext
that will not check for XSD validations.disableXmlValidations
- true
if the artifact context must be created without XSD validations, false otherwise.public ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setServiceConfigurators(List<ServiceConfigurator> serviceConfigurators)
serviceConfigurators
- list of ServiceConfigurator
that register or override services in the
MuleContext
.this
builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setParentContext(MuleContext parentContext)
parentContext
- the parent MuleContext
of the ArtifactContext
to be created.this
builderpublic ArtifactContextConfiguration build()
ArtifactContextConfiguration
with te provided configuration.Copyright © 2018. All rights reserved.