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

org.jdesktop.application.Resource Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version

/*
 * Copyright (C) 2006 Sun Microsystems, Inc. All rights reserved. Use is
 * subject to license terms.
 */
package org.jdesktop.application;

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

/**
 * Marks the field as a resource to be injected.
 * 

* In order to inject the resources for this class, * the resources must be defined in a class resource file. * You should name field resources in the resource file using the class name followed by a period (.) and the key: *

 *  <classname>.<fieldname>
 * 
* * @author Hans Muller ([email protected]) */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Resource { /** * Key for resource injection. If not specified the name of the field will be used. */ String key() default ""; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy