Class MarshalCallback


  • public class MarshalCallback
    extends java.lang.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.
    A Map of MarshalCallbacks are created during JAXB 2.0 Generation and are set on a JAXBMarshallerListener on each JAXBMarshaller. These callbacks are used to invoke the JAXB 2.0 Class Based callbacks on each object at the appropriate time.
    See Also:
    JAXBMarshalListener, JAXBMarshaller
    Author:
    mmacivor
    Since:
    Oracle TopLink 11.1.1.0.0
    • Constructor Detail

      • MarshalCallback

        public MarshalCallback()
    • Method Detail

      • getAfterMarshalCallback

        public java.lang.reflect.Method getAfterMarshalCallback()
      • getBeforeMarshalCallback

        public java.lang.reflect.Method getBeforeMarshalCallback()
      • getDomainClass

        public java.lang.Class getDomainClass()
      • initialize

        public void initialize​(java.lang.ClassLoader loader)
        Initialize information about class based JAXB 2.0 Callback methods.
        Parameters:
        loader - source class loader for domainClass
      • setAfterMarshalCallback

        public void setAfterMarshalCallback​(java.lang.reflect.Method method)
        Should not use this method - the init method will overwrite the set value.
      • setHasAfterMarshalCallback

        public void setHasAfterMarshalCallback()
      • setBeforeMarshalCallback

        public void setBeforeMarshalCallback​(java.lang.reflect.Method method)
        Should not use this method - the init method will overwrite the set value.
      • setHasBeforeMarshalCallback

        public void setHasBeforeMarshalCallback()
      • setDomainClass

        public void setDomainClass​(java.lang.Class clazz)
        Should use setDomainClassName - the init method will overwrite the set value with Class.forName(domainClassName).
        Parameters:
        clazz -
      • setDomainClassName

        public void setDomainClassName​(java.lang.String className)