- java.lang.Object
-
- org.eclipse.persistence.jaxb.compiler.MarshalCallback
-
public class MarshalCallback extends Object
INTERNAL:Purpose:Hold information about class based JAXB 2.0 Callback methods
Responsibilities:
- Store information about domainClass and the callback methods
- Act as a means to integrate JAXB 2.0 Class based callbacks with TopLink OXM Listener based callbacks.
- See Also:
JAXBMarshalListener
,JAXBMarshaller
- Author:
- mmacivor
- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Constructor Summary
Constructors Constructor Description MarshalCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Method
getAfterMarshalCallback()
Method
getBeforeMarshalCallback()
Class<?>
getDomainClass()
void
initialize(ClassLoader loader)
Initialize information about class based JAXB 2.0 Callback methods.void
setAfterMarshalCallback(Method method)
Should not use this method - the init method will overwrite the set value.void
setBeforeMarshalCallback(Method method)
Should not use this method - the init method will overwrite the set value.void
setDomainClass(Class<?> clazz)
Should use setDomainClassName - the init method will overwrite the set value with Class.forName(domainClassName).void
setDomainClassName(String className)
void
setHasAfterMarshalCallback()
void
setHasBeforeMarshalCallback()
-
-
-
Method Detail
-
getAfterMarshalCallback
public Method getAfterMarshalCallback()
-
getBeforeMarshalCallback
public Method getBeforeMarshalCallback()
-
getDomainClass
public Class<?> getDomainClass()
-
initialize
public void initialize(ClassLoader loader)
Initialize information about class based JAXB 2.0 Callback methods.- Parameters:
loader
- source class loader fordomainClass
-
setAfterMarshalCallback
public void setAfterMarshalCallback(Method method)
Should not use this method - the init method will overwrite the set value.
-
setHasAfterMarshalCallback
public void setHasAfterMarshalCallback()
-
setBeforeMarshalCallback
public void setBeforeMarshalCallback(Method method)
Should not use this method - the init method will overwrite the set value.
-
setHasBeforeMarshalCallback
public void setHasBeforeMarshalCallback()
-
setDomainClass
public void setDomainClass(Class<?> clazz)
Should use setDomainClassName - the init method will overwrite the set value with Class.forName(domainClassName).
-
setDomainClassName
public void setDomainClassName(String className)
-
-