org.opentcs.customizations.ApplicationHome Maven / Gradle / Ivy
/**
* Copyright (c) The openTCS Authors.
*
* This program is free software and subject to the MIT license. (For details,
* see the licensing information (LICENSE.txt) you should have received with
* this copy of the software.)
*/
package org.opentcs.customizations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
/**
* A binding annotation that can be used to have the application's home directory injected.
* In classes participating in dependency injection, annotate an injected java.io.File
* with this annotation to get a reference to the application's home directory.
*
* Example:
*
*
* public MyClass(@ApplicationHome File applicationHome) { ... }
*
*
* @author Stefan Walter (Fraunhofer IML)
*/
@Qualifier
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ApplicationHome {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy