
net.cassite.pure.ioc.annotations.Force Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pure.ioc Show documentation
Show all versions of pure.ioc Show documentation
Lightweight type and annotation based dependency injection framework
The newest version!
package net.cassite.pure.ioc.annotations;
import java.lang.annotation.*;
/**
* Force a setter or one of method's parameter to use the given value.
* The system will try to transform the value into proper type.
* Only use this method on those parameters/setters which types are primitive or
* String
*
* @author wkgcass
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Inherited
public @interface Force {
String value();
/**
* use property value as the value to inject( value would be considered as key of the property )
*
* @return properties name
* @since 0.2.2
*/
String properties() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy