public interface ObjectModelResolver
ObjectModel
to actual instances based on underlying mechanism
such as reflection, Spring, CDI, MVEL and more.Modifier and Type | Method and Description |
---|---|
boolean |
accept(String resolverId)
Accepts if the given
resolverId is matching this resolver identifier. |
Object |
getInstance(ObjectModel model,
ClassLoader cl,
Map<String,Object> contextParams)
Creates new instance from the given
ObjectMode |
Object getInstance(ObjectModel model, ClassLoader cl, Map<String,Object> contextParams)
ObjectMode
model
- object model that defines the instancecl
- class loader that have access to the classescontextParams
- provides some contextual params that are referenced by name and already created
such as RuntimeManager, RuntimeEngine, KieSession, TaskServiceboolean accept(String resolverId)
resolverId
is matching this resolver identifier.resolverId
- identifier of the resolverCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.