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

com.google.sitebricks.Export Maven / Gradle / Ivy

package com.google.sitebricks;

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

/**
 * TODO Maybe deprecate this and force resources to be explicitly bound.
 *
 * 

Mark classes with this to configure loading static resource from that * class's neighborhood (i.e. using {@code Class.getResourceAsStream}). Example: *

 * {@literal @}Export(at="/my.js", resource="my.js")
 * public class MyWebPage { .. }
 *
 * @author Dhanji R. Prasanna (dhanji@gmail com)
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Export {
  String at();

  String resource();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy