Package org.kie.internal.runtime.conf
Interface ObjectModelResolver
-
public interface ObjectModelResolverResolvesObjectModelto actual instances based on underlying mechanism such as reflection, Spring, CDI, MVEL and more.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(java.lang.String resolverId)Accepts if the givenresolverIdis matching this resolver identifier.java.lang.ObjectgetInstance(ObjectModel model, java.lang.ClassLoader cl, java.util.Map<java.lang.String,java.lang.Object> contextParams)Creates new instance from the givenObjectMode
-
-
-
Method Detail
-
getInstance
java.lang.Object getInstance(ObjectModel model, java.lang.ClassLoader cl, java.util.Map<java.lang.String,java.lang.Object> contextParams)
Creates new instance from the givenObjectMode- Parameters:
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, TaskService- Returns:
-
accept
boolean accept(java.lang.String resolverId)
Accepts if the givenresolverIdis matching this resolver identifier.- Parameters:
resolverId- identifier of the resolver- Returns:
-
-