mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-06 17:11:25 +02:00
23 lines
683 B
Java
23 lines
683 B
Java
package com.intellectualcrafters.configuration.serialization;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Applies to a {@link ConfigurationSerializable} that will delegate all
|
|
* deserialization to another {@link ConfigurationSerializable}.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
public @interface DelegateDeserialization {
|
|
/**
|
|
* Which class should be used as a delegate for this classes
|
|
* deserialization
|
|
*
|
|
* @return Delegate class
|
|
*/
|
|
public Class<? extends ConfigurationSerializable> value();
|
|
}
|