T - type of the builder, used to enable builder pattern on subclasses methodsM - type of the model being built, used to have type safetypublic abstract class AbstractMuleArtifactModelBuilder<T extends AbstractMuleArtifactModelBuilder,M extends AbstractMuleArtifactModel> extends Object
AbstractMuleArtifactModel implementations.| Constructor and Description |
|---|
AbstractMuleArtifactModelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract M |
build() |
MuleArtifactLoaderDescriptor |
getBundleDescriptorLoader() |
MuleArtifactLoaderDescriptor |
getClassLoaderModelDescriptorLoader() |
String |
getMinMuleVersion() |
String |
getName() |
protected abstract T |
getThis() |
T |
setMinMuleVersion(String muleVersion)
Sets the describer's minimum Mule Runtime version that requires to work correctly
|
T |
setName(String name)
Sets the describer's name
|
T |
withBundleDescriptorLoader(MuleArtifactLoaderDescriptor bundleDescriptorLoader)
Sets the bundle descriptor loader for the artifact
|
MuleArtifactLoaderDescriptorBuilder |
withClassLoaderModelDescriber() |
public T setName(String name)
name - the name the describer will havethis builderpublic String getName()
protected abstract T getThis()
public T setMinMuleVersion(String muleVersion)
muleVersion - of the describerthis builderpublic String getMinMuleVersion()
public MuleArtifactLoaderDescriptor getClassLoaderModelDescriptorLoader()
public T withBundleDescriptorLoader(MuleArtifactLoaderDescriptor bundleDescriptorLoader)
bundleDescriptorLoader - describes the loader for the bundle descriptor. Non nullMuleArtifactLoaderDescriptor to populate the ClassLoader describer with the ID and any additional
attributespublic MuleArtifactLoaderDescriptorBuilder withClassLoaderModelDescriber()
MuleArtifactLoaderDescriptorBuilder to populate the ClassLoader describer with the ID and
any additional attributespublic MuleArtifactLoaderDescriptor getBundleDescriptorLoader()
public abstract M build()
M typeCopyright © 2017 MuleSoft, Inc.. All rights reserved.