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

org.opentcs.customizations.ApplicationHome Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/**
 * 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