org.ioc.commons.integration.dataaccess.localstorage.IsLocalData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ioc-commons Show documentation
Show all versions of ioc-commons Show documentation
This project defines a set of useful java interfaces for helping you in the definition of the structure of your developments in Java-projects which are designed using a Inversion-Of-Control (IOC) pattern. Useful for MVP-Pattern designs in applications coded on GWT, SWT, Android, etc.
package org.ioc.commons.integration.dataaccess.localstorage;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks data as local data, used by {@link LocalClientStorage}
*
* @author 'Jesús Lunar Pérez'
* @see LocalClientStorage
*
*/
public interface IsLocalData {
/**
* Annotation for indicating the type returned by {@link LocalClientStorage}
*
* @author Jesús Lunar Pérez
*
*/
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.SOURCE)
public @interface LocalDataType {
Class> value();
Class> collectionOf() default Object.class;
}
}