Skip to content

Commit 3703345

Browse files
committed
MNEMONIC-297:Add more constructors for ParameterHolder
1 parent ad30cea commit 3703345

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

mnemonic-core/src/main/java/org/apache/mnemonic/ParameterHolder.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,30 @@ public ParameterHolder() {
3434
handler = 0;
3535
}
3636

37+
public ParameterHolder(A n) {
38+
this.allocator = n;
39+
this.durableType = new DurableType[]{};
40+
this.entityFactoryProxy = null;
41+
this.autoReclaim = true;
42+
this.handler = 0;
43+
}
44+
45+
public ParameterHolder(A n, DurableType[] d) {
46+
this.allocator = n;
47+
this.durableType = d;
48+
this.entityFactoryProxy = null;
49+
this.autoReclaim = true;
50+
this.handler = 0;
51+
}
52+
53+
public ParameterHolder(A n, DurableType[] d, EntityFactoryProxy[] e) {
54+
this.allocator = n;
55+
this.durableType = d;
56+
this.entityFactoryProxy = e;
57+
this.autoReclaim = true;
58+
this.handler = 0;
59+
}
60+
3761
public ParameterHolder(A n, DurableType[] d, EntityFactoryProxy[] e, boolean b, long h) {
3862
this.allocator = n;
3963
this.durableType = d;

0 commit comments

Comments
 (0)