Coverage Report - org.dozer.DozerEventListener
 
Classes in this File Line Coverage Branch Coverage Complexity
DozerEventListener
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2013 Dozer Project
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.dozer;
 17  
 
 18  
 import org.dozer.event.DozerEvent;
 19  
 
 20  
 /**
 21  
  * Public event listener interface. By implementing the DozerEventListener interface Dozer allows you to listen to 4
 22  
  * different events: mappingStarted, mappingFinished, preWritingDestinationValue, postWritingDestinationValue.
 23  
  * 
 24  
  * <p>
 25  
  * A DozerEvent object is passed into these callback methods which stores information about the ClassMap, FieldMap,
 26  
  * Source object, destination object, and destination value. This will allow you to extend dozer and manipulate mapped
 27  
  * objects at run-time.
 28  
  * 
 29  
  * <p>
 30  
  * <a
 31  
  * href="http://dozer.sourceforge.net/documentation/events.html">http://dozer.sourceforge.net/documentation/events.html</a>
 32  
  * 
 33  
  * @author garsombke.franz
 34  
  * 
 35  
  */
 36  
 public interface DozerEventListener {
 37  
 
 38  
   public void mappingStarted(DozerEvent event);
 39  
 
 40  
   public void preWritingDestinationValue(DozerEvent event);
 41  
 
 42  
   public void postWritingDestinationValue(DozerEvent event);
 43  
 
 44  
   public void mappingFinished(DozerEvent event);
 45  
 }