Spring Framework GroovyBeanDefinitionReader - 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 GroovyBeanDefinitionReader class.

This code example shows how to use the following methods:loadBeanDefinitions
	 * @see AbstractGenericWebContextLoader#loadBeanDefinitions 
	 */ 
	@Override 
	protected void loadBeanDefinitions(GenericWebApplicationContext context,
			WebMergedContextConfiguration webMergedConfig) {
		new GroovyBeanDefinitionReader(context).loadBeanDefinitions(webMergedConfig.getLocations());
	} 
 
	/** 
	 * Returns {@code "-context.xml" and "Context.groovy"} in order to 
	 * support detection of a default XML config file or Groovy script. 
	 */ 
	@Override 
	protected String[] getResourceSuffixes() {
		return new String[] { super.getResourceSuffix(), "Context.groovy" };
	} 
 
	/** 
	 * {@code GenericGroovyXmlWebContextLoader} supports both Groovy and XML 
	 * resource types for detection of defaults. Consequently, this method 
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:loadBeanDefinitions
 * @since 4.0 
 * @see org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader 
 */ 
public class GenericGroovyApplicationContext extends GenericApplicationContext implements GroovyObject {
 
	private final GroovyBeanDefinitionReader reader = new GroovyBeanDefinitionReader(this);
 
	private final BeanWrapper contextWrapper = new BeanWrapperImpl(this);
 
    private MetaClass metaClass = GroovySystem.getMetaClassRegistry().getMetaClass(getClass());
 
 
	/** 
	 * Create a new GenericGroovyApplicationContext that needs to be 
	 * {@link #load loaded} and then manually {@link #refresh refreshed}. 
	 */ 
	public GenericGroovyApplicationContext() { 
	} 
 
	/** 

6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
                "GenericGroovyContextLoader does not support the getResourceSuffix() method"); 
    } 
 
    @Override 
    protected BeanDefinitionReader createBeanDefinitionReader(GenericApplicationContext context) { 
        return new GroovyBeanDefinitionReader(context); 
    } 
} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Spring Framework GroovyBeanDefinitionReader Methods: