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

net.cassite.pure.ioc.annotations.Force Maven / Gradle / Ivy

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