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

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

The newest version!
package net.cassite.pure.ioc.annotations;

import java.lang.annotation.*;

import net.cassite.pure.ioc.ExtendingHandler;

/**
 * This annotations aims to simplify retrieving objects from other object
 * containers.
* e.g. if you need to retrieve an object from spring, you need to (for example) * create a Spring annotation, then create * TypeSpringHandler and ParamSpringHandler to * finish the injection and object-retrieving.
* However the only extension was retrieving an object from Spring.
* Now you can use this to simplify your retrieving process. * * @author wkgcass */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) @Inherited public @interface Extend { /** * ExtendingHandler implement class. The handler would be retrieved * using {@link net.cassite.pure.ioc.AutoWire#get(Class)} * * @return class * @see net.cassite.pure.ioc.AutoWire#get(Class) * @see ExtendingHandler */ @SuppressWarnings("rawtypes") Class handler(); /** * Arguments to fill into your handler * * @return arguments */ String[] args(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy