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

This code example shows how to use the following methods:
This code example shows how to use the following methods:
					new RootBeanDefinition("org.springframework.cache.annotation.AnnotationCacheOperationSource"));
		} 
	} 
 
	private List<RootBeanDefinition> parseDefinitionsSources(List<Element> definitions, ParserContext parserContext) {
		ManagedList<RootBeanDefinition> defs = new ManagedList<RootBeanDefinition>(definitions.size());
 
		// extract default param for the definition 
		for (Element element : definitions) {
			defs.add(parseDefinitionSource(element, parserContext));
		} 
 
		return defs;
	} 
 
	private RootBeanDefinition parseDefinitionSource(Element definition, ParserContext parserContext) {
		Props prop = new Props(definition);
		// add cacheable first 
 
		ManagedMap<TypedStringValue, Collection<CacheOperation>> cacheOpMap = new ManagedMap<TypedStringValue, Collection<CacheOperation>>();
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
    static final String DEF_LOGOUT_URL = "/j_spring_security_logout";
    static final String ATT_LOGOUT_HANDLER = "success-handler-ref";
    static final String ATT_DELETE_COOKIES = "delete-cookies";
 
    final String rememberMeServices;
    private ManagedList<BeanMetadataElement> logoutHandlers = new ManagedList<BeanMetadataElement>();
    private boolean csrfEnabled;
 
    public LogoutBeanDefinitionParser(String rememberMeServices, BeanMetadataElement csrfLogoutHandler) {
        this.rememberMeServices = rememberMeServices;
        this.csrfEnabled = csrfLogoutHandler != null;
        if(this.csrfEnabled) {
            logoutHandlers.add(csrfLogoutHandler);
        } 
    } 
 
    public BeanDefinition parse(Element element, ParserContext pc) {
        String logoutUrl = null;
        String successHandlerRef = null;
        String logoutSuccessUrl = null;
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:
	 */ 
	private static void setXQueryParameters(Element element,
			BeanDefinitionBuilder builder) {
		NodeList parameters = element.getElementsByTagNameNS(element.getNamespaceURI(), "xquery-parameter");
		if(parameters != null && parameters.getLength() > 0) {
			ManagedList<AbstractBeanDefinition> params = new ManagedList<AbstractBeanDefinition>();
			for(int i = 0;i < parameters.getLength();i++) {
				Node node = parameters.item(i);
				NamedNodeMap attrs = node.getAttributes();
				Assert.isTrue(attrs.getLength() > 1,
						"One of ref, value or expression should be present with the name attribute"); 
				Attr nameAttr = (Attr)attrs.getNamedItem("name");
 
				//TODO No check for the mutually exclusivity of these attributes, needed? 
 
				//create a new XQueryParameter instance 
				BeanDefinitionBuilder paramBuilder =
					BeanDefinitionBuilder.genericBeanDefinition(XQueryParameter.class);
				paramBuilder.addConstructorArgValue(nameAttr.getTextContent());
				Attr attr;
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 
	@Override 
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		super.doParse(element, parserContext, builder);
 
		ManagedList<BeanDefinition> entries = new ManagedList<BeanDefinition>();
		parseTransferEntries(element, "hdfs", entries);
		builder.addPropertyValue("hdfsEntries", entries);
 
		entries = new ManagedList<BeanDefinition>();
		parseCopyEntries(element, "copy", entries);
		builder.addPropertyValue("copyEntries", entries);
 
		YarnNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "configuration");
	} 
 
	private void parseTransferEntries(Element element, String name, List<BeanDefinition> entries) {
		List<Element> cp = DomUtils.getChildElementsByTagName(element, name);
		for (Element entry : cp) {
			BeanDefinitionBuilder bd = BeanDefinitionBuilder.genericBeanDefinition(TransferEntry.class);
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Spring Framework ManagedList Methods: