
net.cassite.pure.ioc.ext.SpringExt 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.ext;
import net.cassite.pure.ioc.ExtendingHandler;
import net.cassite.pure.ioc.annotations.Wire;
import org.springframework.context.ApplicationContext;
/**
* extension for spring. retrieve instances from spring by bean names
*/
public class SpringExt implements ExtendingHandler {
@Wire
private ApplicationContext context;
@Override
public Object get(String[] args) {
return context.getBean(args[0]);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy