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

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

// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.customizations;

import jakarta.inject.Qualifier;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 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) { ... }
 * 
*/ @Qualifier @Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface ApplicationHome { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy