01: package org.drools.objenesis;
02:
03: import org.drools.objenesis.strategy.SerializingInstantiatorStrategy;
04:
05: /**
06: * Objenesis implementation using the {@link SerializingInstantiatorStrategy}.
07: *
08: * @author Henri Tremblay
09: */
10: public class ObjenesisSerializer extends ObjenesisBase {
11:
12: /**
13: * Default constructor using the {@link org.drools.objenesis.strategy.SerializingInstantiatorStrategy}
14: */
15: public ObjenesisSerializer() {
16: super (new SerializingInstantiatorStrategy());
17: }
18:
19: /**
20: * Instance using the {@link org.drools.objenesis.strategy.SerializingInstantiatorStrategy} with or without caching
21: * {@link org.drools.objenesis.instantiator.ObjectInstantiator}s
22: *
23: * @param useCache If {@link org.drools.objenesis.instantiator.ObjectInstantiator}s should be cached
24: */
25: public ObjenesisSerializer(final boolean useCache) {
26: super (new SerializingInstantiatorStrategy(), useCache);
27: }
28: }
|