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

This code example shows how to use the following methods:
This code example shows how to use the following methods:
		RootBeanDefinition controller = new RootBeanDefinition(ParameterizableViewController.class);
		controller.setSource(source);
 
		HttpStatus statusCode = null;
		if (element.hasAttribute("status-code")) {
			int statusValue = Integer.valueOf(element.getAttribute("status-code"));
			statusCode = HttpStatus.valueOf(statusValue);
		} 
 
		String name = element.getLocalName();
		if (name.equals("view-controller")) {
			if (element.hasAttribute("view-name")) {
				controller.getPropertyValues().add("viewName", element.getAttribute("view-name"));
			} 
			if (statusCode != null) {
				controller.getPropertyValues().add("statusCode", statusCode);
			} 
		} 
		else if (name.equals("redirect-view-controller")) {
			controller.getPropertyValues().add("view", getRedirectView(element, statusCode, source));
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
    { 
        //bdHolder = decorateBeanDefinitionIfRequired(ele, bdHolder); 
        // Register the final decorated instance. 
        BeanDefinitionReaderUtils.registerBeanDefinition(bdHolder, getReaderContext().getRegistry());
        // Send registration event. 
        getReaderContext().fireComponentRegistered(new BeanComponentDefinition(bdHolder));
    } 
 
    protected String generateChildBeanName(Element e)
    { 
        String id = SpringXMLUtils.getNameOrId(e);
        if (StringUtils.isBlank(id))
        { 
            String parentId = SpringXMLUtils.getNameOrId((Element) e.getParentNode());
            return "." + parentId + ":" + e.getLocalName();
        } 
        else 
        { 
            return id;
        } 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods: