Spring Framework Jsr330ScopeMetadataResolver - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework Jsr330ScopeMetadataResolver class.

This code example shows how to use the following methods:
public final class AppContext { 
	private static AnnotationConfigApplicationContext context;
 
	static { 
		final AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        ctx.setScopeMetadataResolver(new Jsr330ScopeMetadataResolver());
        ctx.scan("lcmc");
        ctx.refresh();
        context = ctx;
	} 
 
	private AppContext() { 
	} 
 
	public static <T> T getBean(Class<T> beanClass) {
		return context.getBean(beanClass);
	} 
 
    public static <T> T getBean(final String name, Class<T> beanClass) {
        return context.getBean(name, beanClass);
5
CodeRank
Experience pair programming with AI  Get Codota for Java