Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
DelegateDeserialization.java
1 package org.bukkit.configuration.serialization;
2 
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7 
8 /**
9  * Applies to a {@link ConfigurationSerializable} that will delegate all
10  * deserialization to another {@link ConfigurationSerializable}.
11  */
12 @Retention(RetentionPolicy.RUNTIME)
13 @Target(ElementType.TYPE)
14 public @interface DelegateDeserialization {
15  /**
16  * Which class should be used as a delegate for this classes
17  * deserialization
18  *
19  * @return Delegate class
20  */
21  public Class<? extends ConfigurationSerializable> value();
22 }