Class CaseMarshallerFactory
- java.lang.Object
-
- org.jbpm.casemgmt.impl.marshalling.CaseMarshallerFactory
-
public class CaseMarshallerFactory extends Object
Utility class to help with creating properly setup CaseFileInstanceMarshallerStrategy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CaseMarshallerFactory
builder()
Builds new instance of the factory to append marshalling strategies to with thread context classloaderstatic CaseMarshallerFactory
builder(ClassLoader classLoader)
Builds new instance of the factory to append marshalling strategies toorg.kie.api.marshalling.ObjectMarshallingStrategy
get()
Returns fully configured CaseFileMarshaller with previously set child marshallersString
toString()
Retruns string representation (as mvel expression) of the configurationCaseMarshallerFactory
with(org.kie.api.marshalling.ObjectMarshallingStrategy custom)
Adds given custom marshalling strategy to be used by CaseFileMarshallerCaseMarshallerFactory
withDoc()
Adds document marshalling strategy to be used by CaseFileMarshallerCaseMarshallerFactory
withJpa(String puName)
Add JPA marshalling strategy to be used by CaseFileMarshaller
-
-
-
Method Detail
-
withDoc
public CaseMarshallerFactory withDoc()
Adds document marshalling strategy to be used by CaseFileMarshaller- Returns:
- this factory instance
-
withJpa
public CaseMarshallerFactory withJpa(String puName)
Add JPA marshalling strategy to be used by CaseFileMarshaller- Parameters:
puName
- persistence unit name to be used- Returns:
- this factory instance
-
with
public CaseMarshallerFactory with(org.kie.api.marshalling.ObjectMarshallingStrategy custom)
Adds given custom marshalling strategy to be used by CaseFileMarshaller- Parameters:
custom
- any marshalling strategy fully configured- Returns:
- this factory instance
-
get
public org.kie.api.marshalling.ObjectMarshallingStrategy get()
Returns fully configured CaseFileMarshaller with previously set child marshallers
-
toString
public String toString()
Retruns string representation (as mvel expression) of the configuration
-
builder
public static CaseMarshallerFactory builder(ClassLoader classLoader)
Builds new instance of the factory to append marshalling strategies to- Parameters:
classLoader
- custom class loader to be used
-
builder
public static CaseMarshallerFactory builder()
Builds new instance of the factory to append marshalling strategies to with thread context classloader
-
-