Coverage Report - org.simpleframework.xml.core.Resolve
 
Classes in this File Line Coverage Branch Coverage Complexity
Resolve
N/A
N/A
0
 
 1  
 /*
 2  
  * Resolve.java June 2007
 3  
  *
 4  
  * Copyright (C) 2007, Niall Gallagher <niallg@users.sf.net>
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 15  
  * implied. See the License for the specific language governing 
 16  
  * permissions and limitations under the License.
 17  
  */
 18  
 
 19  
 package org.simpleframework.xml.core;
 20  
 
 21  
 import java.lang.annotation.RetentionPolicy;
 22  
 import java.lang.annotation.Retention;
 23  
 
 24  
 /**
 25  
  * The <code>Resolve</code> method is used to resolve an object that
 26  
  * has been deserialized from the XML document. This is used when the
 27  
  * deserialized object whats to provide a substitute to itself within
 28  
  * the object graph. This is particularly useful when an object is
 29  
  * used to reference an external XML document, as it allows that XML
 30  
  * document to be deserialized in to a new object instance.
 31  
  * <p>
 32  
  * This is similar to the <code>readResolve</code> method used within
 33  
  * Java Object Serialization in that it is used to create a object to 
 34  
  * plug in to the object graph after it has been fully deserialized.
 35  
  * Care should be taken when using this annotation as the object that
 36  
  * is returned from the resolve method must match the field type such
 37  
  * that the resolved object is an assignable substitute.
 38  
  * 
 39  
  * @author Niall Gallagher
 40  
  */
 41  
 @Retention(RetentionPolicy.RUNTIME)
 42  
 public @interface Resolve {  
 43  
 }