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

com.google.inject.spi.Toolable Maven / Gradle / Ivy

package com.google.inject.spi;

import com.google.inject.Injector;
import com.google.inject.Stage;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Instructs an {@link Injector} running in {@link Stage#TOOL} that a method should be injected.
 * This is typically useful for for extensions to Guice that perform additional validation in an
 * injected method or field.  This only applies to objects that are already constructed when
 * bindings are created (ie., something bound using {@link
 * com.google.inject.binder.LinkedBindingBuilder#toProvider toProvider}, {@link
 * com.google.inject.binder.LinkedBindingBuilder#toInstance toInstance}, or {@link
 * com.google.inject.Binder#requestInjection requestInjection}.
 *
 */
@Target({METHOD})
@Retention(RUNTIME)
@Documented
public @interface Toolable {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy