com.tobedevoured.modelcitizen.annotation.NewInstance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Model Citizen is an annotation based model factory for Java.
A Model is mapped by a Blueprint using annotated fields. Blueprints contain
default values and references to other blueprinted models. The ModelFactory can
create Models based on registered Blueprints. A Model already created can be
passed into the ModelFactory as a Reference Model, which will be used as the basis
for the new Model.
package com.tobedevoured.modelcitizen.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Callback when ModelFactory creates a new instance of the Model. Used in
* conjunction with (@link ConstructorCallback}
* @deprecated No longer required, {@link ConstructorCallback} is automatically detected
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Deprecated
public @interface NewInstance {
}