
com.github.brunothg.swing.mvp.annotation.SwingView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swing-mvp Show documentation
Show all versions of swing-mvp Show documentation
MVP for Spring desktop applications
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