public static class ArtifactContextConfiguration.ArtifactContextConfigurationBuilder extends Object
ArtifactContextConfiguration.| Constructor and Description |
|---|
ArtifactContextConfigurationBuilder() |
public ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setMuleContext(MuleContext muleContext)
muleContext - the artifact MuleContextthis builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setConfigResources(String[] configResources)
configResources - configuration files of the artifact.this builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setArtifactDeclaration(org.mule.runtime.app.declaration.api.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<org.mule.runtime.api.config.custom.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.ArtifactContextConfigurationBuilder setRuntimeComponentBuildingDefinitionProvider(org.mule.runtime.dsl.api.component.ComponentBuildingDefinitionProvider runtimeComponentBuildingDefinitionProvider)
runtimeComponentBuildingDefinitionProvider - provider for the runtime
ComponentBuildingDefinitionsthis builderpublic ArtifactContextConfiguration.ArtifactContextConfigurationBuilder setRuntimeLockFactory(org.mule.runtime.api.lock.LockFactory runtimeLockFactory)
runtimeLockFactory - LockFactory for the runtime that can be shared along deployable artifacts to synchronize access on different deployable artifacts to the same resources.public ArtifactContextConfiguration build()
ArtifactContextConfiguration with te provided configuration.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.