Package org.kie.internal.runtime.conf
Class ObjectModel
java.lang.Object
org.kie.internal.runtime.conf.ObjectModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NamedObjectModel
,TransientObjectModel
Object model that defines how and of what type the object instance should be created.
The how is actually delegated to resolved implementation
The what type is derived from identifier (which should be FQCN in case of reflection) that is then used to create instance of that object using constructor. Which constructor is taken depends on defined parameters which might be again an ObjectModel for complex types. String types are supported directly, all other should be represented as ObjectModel.
There are some key words acceptable that directly will refer to available instances:
The how is actually delegated to resolved implementation
ObjectModelResolver
that default to Java Reflection based resolver but might utilize others (such as MVEL, Spring, CDI, etc).
The what type is derived from identifier (which should be FQCN in case of reflection) that is then used to create instance of that object using constructor. Which constructor is taken depends on defined parameters which might be again an ObjectModel for complex types. String types are supported directly, all other should be represented as ObjectModel.
There are some key words acceptable that directly will refer to available instances:
- runtimeManager - to get RuntimeManager instance injected
- runtimeEngine - to get RuntimeEngine instance injected
- ksession - to get KieSession instance injected
- taskService - to get TaskService instance injected
- See Also:
-
Constructor Summary
ConstructorDescriptionObjectModel
(String identifier, Object... parameters) ObjectModel
(String resolver, String identifier, Object... parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(Object parameter) boolean
int
hashCode()
void
setIdentifier
(String classname) void
setParameters
(List<Object> parameters) void
setResolver
(String resolver) toString()
-
Constructor Details
-
ObjectModel
public ObjectModel() -
ObjectModel
-
ObjectModel
-
-
Method Details