public class PropertiesBootstrapService extends Object implements BootstrapService
| Constructor and Description |
|---|
PropertiesBootstrapService(ClassLoader classLoader,
Properties properties)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Class |
forName(String name)
Searches for a class in the service's class loader
|
Properties |
getProperties() |
Object |
instantiateClass(String name,
Object... constructorArgs)
Instantiates a class using the service's class loader
|
public PropertiesBootstrapService(ClassLoader classLoader, Properties properties)
classLoader - classLoader used to create bootstrapping objectsproperties - properties defining the bootstrapping objectspublic Properties getProperties()
getProperties in interface BootstrapServicepublic Object instantiateClass(String name, Object... constructorArgs) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException
BootstrapServiceinstantiateClass in interface BootstrapServicename - fully qualified class name to instantiateconstructorArgs - constructor argumentsClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetExceptionInstantiationExceptionIllegalAccessExceptionpublic Class forName(String name) throws ClassNotFoundException
BootstrapServiceforName in interface BootstrapServicename - fully qualified name of the class to search forClassNotFoundException - if the class was not found in the service's class loaderCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.