Package org.kie.server.api.marshalling
Class MarshallerFactory
- java.lang.Object
-
- org.kie.server.api.marshalling.MarshallerFactory
-
public class MarshallerFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description MarshallerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarshallergetMarshaller(Set<Class<?>> classes, MarshallingFormat format, ClassLoader classLoader)Builds new marshaller for given format and class loaderstatic MarshallergetMarshaller(MarshallingFormat format, ClassLoader classLoader)Builds new marshaller for given format and class loader
-
-
-
Method Detail
-
getMarshaller
public static Marshaller getMarshaller(MarshallingFormat format, ClassLoader classLoader)
Builds new marshaller for given format and class loader- Parameters:
format- marshaller format that marshaller should be built forclassLoader- classloader to be used by the marshaller- Returns:
- new instance of the marshaller
-
getMarshaller
public static Marshaller getMarshaller(Set<Class<?>> classes, MarshallingFormat format, ClassLoader classLoader)
Builds new marshaller for given format and class loader- Parameters:
classes- optional custom classes to be added to marshaller - might be nullformat- marshaller format that marshaller should be built forclassLoader- classloader to be used by the marshaller- Returns:
- new instance of the marshaller
-
-