ParseRefOrNestedObjectDeclaration() public static method

public static ParseRefOrNestedObjectDeclaration ( ParserContext parserContext, XmlElement element, ObjectDefinitionBuilder builder ) : object
parserContext Spring.Objects.Factory.Xml.ParserContext
element System.Xml.XmlElement
builder Spring.Objects.Factory.Support.ObjectDefinitionBuilder
return object
示例#1
0
        private object ParseKeyInterest(ParserContext parserContext, XmlElement subElement)
        {
            ObjectDefinitionBuilder keyInterestBuilder = ObjectDefinitionBuilder.GenericObjectDefinition(typeof(KeyInterest));

            ParseCommonInterestAttr(subElement, keyInterestBuilder);

            Object key = ParsingUtils.ParseRefOrNestedObjectDeclaration(parserContext, subElement, keyInterestBuilder, "key-ref");

            keyInterestBuilder.AddConstructorArg(key);
            return(keyInterestBuilder.ObjectDefinition);
        }
示例#2
0
 private object ParseCacheListener(ParserContext parserContext, XmlElement element, ObjectDefinitionBuilder builder)
 {
     return(ParsingUtils.ParseRefOrNestedObjectDeclaration(parserContext, element, builder));
 }