01: package org.jbpm.configuration;
02:
03: import org.jbpm.JbpmConfiguration;
04:
05: public class ValueInfo implements ObjectInfo {
06:
07: private static final long serialVersionUID = 1L;
08:
09: String name;
10: Object value;
11:
12: public ValueInfo(String name, Object value) {
13: this .name = name;
14: this .value = value;
15: }
16:
17: public Object createObject(ObjectFactoryImpl objectFactory) {
18: return value;
19: }
20:
21: public String getName() {
22: return name;
23: }
24:
25: public boolean hasName() {
26: return (name != null);
27: }
28:
29: public boolean isSingleton() {
30: return false;
31: }
32: }
|