public final class TypeAwareConfigurationFactory extends Object implements org.mule.runtime.extension.api.runtime.config.ConfigurationFactory
ConfigurationFactory which creates instances based on a given Class which is assumed to have
a default and public constructor.| Constructor and Description |
|---|
TypeAwareConfigurationFactory(Class<?> configurationType,
ClassLoader extensionClassLoader)
Creates an instance of a given
configurationType on each invocation to newInstance(). |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getObjectType() |
Object |
newInstance()
Returns a new instance on each invocation
|
public TypeAwareConfigurationFactory(Class<?> configurationType, ClassLoader extensionClassLoader)
configurationType on each invocation to newInstance().configurationType - the type to be instantiated. Must be not null, and have a public default constructorextensionClassLoader - the ClassLoader on which the extension is loadedIllegalArgumentException - if the type is null or doesn't have a default public constructorpublic Object newInstance()
newInstance in interface org.mule.runtime.extension.api.runtime.config.ConfigurationFactorypublic Class<?> getObjectType()
getObjectType in interface org.mule.runtime.extension.api.runtime.config.ConfigurationFactoryCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.