public class MuleExtensionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static ExtensionManager |
createDefaultExtensionManager()
Creates a default
ExtensionManager |
static CoreEvent |
getInitialiserEvent()
Creates an empty event for extension initialization purposes
|
static CoreEvent |
getInitialiserEvent(MuleContext muleContext)
Creates an empty event for extension initialization pusposes
|
static ExtensionModel |
loadExtension(Class<?> clazz)
Loads a extension model
|
static ExtensionModel |
loadExtension(Class<?> clazz,
Map<String,Object> params)
Loads a extension model
|
public static ExtensionModel loadExtension(Class<?> clazz)
clazz
- fully qualified name of the class to load.ExtensionModel
that represents the class being loadedIllegalArgumentException
- if there are missing entries in attributes
or the type of any of them does not apply
to the expected one.public static ExtensionModel loadExtension(Class<?> clazz, Map<String,Object> params)
clazz
- fully qualified name of the class to load.params
- a set of attributes to work with in each concrete implementation of ExtensionModelLoader
, which will be
responsible of extracting the mandatory parameters (while casting, if needed).ExtensionModel
that represents the class being loadedIllegalArgumentException
- if there are missing entries in attributes
or the type of any of them does not apply
to the expected one.public static CoreEvent getInitialiserEvent()
CoreEvent
public static CoreEvent getInitialiserEvent(MuleContext muleContext)
muleContext
- context on which the event will be associated.CoreEvent
public static ExtensionManager createDefaultExtensionManager()
ExtensionManager
ExtensionManager
Copyright © 2018. All rights reserved.