All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.brunothg.swing.mvp.annotation.SwingView Maven / Gradle / Ivy

The newest version!
package com.github.brunothg.swing.mvp.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.springframework.stereotype.Component;

import com.github.brunothg.swing.mvp.components.View;

/**
 * Mark a class as {@link View}, so that MVP can calculate the presenter <-> relationship.
 * 
 * @author Marvin Bruns
 *
 */
@Target({ java.lang.annotation.ElementType.TYPE })
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface SwingView {
	public String AUTO_CREATION_NAME = "#auto_creation_name#";

	/**
	 * Matching specified name of presenter
	 */
	String name() default AUTO_CREATION_NAME;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy