PanelName.java :  » Web-Framework » Caramba » org » caramba » annotations » Java Open Source

Java Open Source » Web Framework » Caramba 
Caramba » org » caramba » annotations » PanelName.java
package org.caramba.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Use this annotation specifying the name of the panel to be created implicitly.
 * Can only be used when the Class (which contains the annotated field) has a {@link @ImplicitComponentRegistration} annotation.
 *
 * @author Pieter Degraeuwe
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PanelName {
    /**
     * The name of the panel as it exists in the CarambaConfig (created by caramba-config.xml or other CarambaConfig implementations)
     *
     * @return
     */
    String value();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.