/** * Invoke the afterMarshal api on the external listener (if it exists) and on the bean embedded * afterMarshal api(if it exists). * * This method is called only after the callee has determined that beanInfo.lookForLifecycleMethods == true. * * @param beanInfo * @param currentTarget */ private void fireAfterMarshalEvents(final JaxBeanInfo beanInfo, Object currentTarget) { // first invoke bean embedded listener if (beanInfo.hasAfterMarshalMethod()) { Method m = beanInfo.getLifecycleMethods().afterMarshal; fireMarshalEvent(currentTarget, m); } // then invoke external listener before bean embedded listener Marshaller.Listener externalListener = marshaller.getListener(); if (externalListener != null) { externalListener.afterMarshal(currentTarget); } }
/** * Invoke the afterMarshal api on the external listener (if it exists) and on the bean embedded * afterMarshal api(if it exists). * * This method is called only after the callee has determined that beanInfo.lookForLifecycleMethods == true. * * @param beanInfo * @param currentTarget */ private void fireAfterMarshalEvents(final JaxBeanInfo beanInfo, Object currentTarget) { // first invoke bean embedded listener if (beanInfo.hasAfterMarshalMethod()) { Method m = beanInfo.getLifecycleMethods().afterMarshal; fireMarshalEvent(currentTarget, m); } // then invoke external listener before bean embedded listener Marshaller.Listener externalListener = marshaller.getListener(); if (externalListener != null) { externalListener.afterMarshal(currentTarget); } }
/** * Invoke the afterMarshal api on the external listener (if it exists) and on the bean embedded * afterMarshal api(if it exists). * * This method is called only after the callee has determined that beanInfo.lookForLifecycleMethods == true. * * @param beanInfo * @param currentTarget */ private void fireAfterMarshalEvents(final JaxBeanInfo beanInfo, Object currentTarget) { // first invoke bean embedded listener if (beanInfo.hasAfterMarshalMethod()) { Method m = beanInfo.getLifecycleMethods().afterMarshal; fireMarshalEvent(currentTarget, m); } // then invoke external listener before bean embedded listener Marshaller.Listener externalListener = marshaller.getListener(); if (externalListener != null) { externalListener.afterMarshal(currentTarget); } }
/** * Invoke the afterMarshal api on the external listener (if it exists) and on the bean embedded * afterMarshal api(if it exists). * * This method is called only after the callee has determined that beanInfo.lookForLifecycleMethods == true. * * @param beanInfo * @param currentTarget */ private void fireAfterMarshalEvents(final JaxBeanInfo beanInfo, Object currentTarget) { // first invoke bean embedded listener if (beanInfo.hasAfterMarshalMethod()) { Method m = beanInfo.getLifecycleMethods().afterMarshal; fireMarshalEvent(currentTarget, m); } // then invoke external listener before bean embedded listener Marshaller.Listener externalListener = marshaller.getListener(); if (externalListener != null) { externalListener.afterMarshal(currentTarget); } }