Search in sources :

Example 1 with SerializablePlaceholderResolverStrategy

use of org.drools.core.marshalling.impl.SerializablePlaceholderResolverStrategy in project drools by kiegroup.

the class EnvironmentFactory method newEnvironment.

public static Environment newEnvironment() {
    Environment env = new EnvironmentImpl();
    env.set(EnvironmentName.OBJECT_MARSHALLING_STRATEGIES, new ObjectMarshallingStrategy[] { new SerializablePlaceholderResolverStrategy(ClassObjectMarshallingStrategyAcceptor.DEFAULT) });
    return env;
}
Also used : SerializablePlaceholderResolverStrategy(org.drools.core.marshalling.impl.SerializablePlaceholderResolverStrategy) Environment(org.kie.api.runtime.Environment)

Aggregations

SerializablePlaceholderResolverStrategy (org.drools.core.marshalling.impl.SerializablePlaceholderResolverStrategy)1 Environment (org.kie.api.runtime.Environment)1