public class BeanComponentDefinitionBuilder extends Object
BeanComponentDefinition
more easily.Constructor and Description |
---|
BeanComponentDefinitionBuilder(Element defaultSource,
ParserContext context)
Creates a new
BeanComponentDefinitionBuilder using the given Element as default source and the
given ParserContext . |
Modifier and Type | Method and Description |
---|---|
BeanComponentDefinition |
getComponent(BeanDefinitionBuilder builder)
Creates a
BeanComponentDefinition from the given BeanDefinitionBuilder . |
BeanComponentDefinition |
getComponent(BeanDefinitionBuilder builder,
String name)
Creates a
BeanComponentDefinition from the given BeanDefinitionBuilder using the given name. |
BeanComponentDefinition |
getComponent(BeanDefinitionBuilder builder,
String name,
Object rawSource)
Creates a new
BeanComponentDefinition from the given BeanDefinitionBuilder using the given name and
raw source object. |
BeanComponentDefinition |
getComponentIdButFallback(BeanDefinitionBuilder builder,
String fallback)
Creates a
BeanComponentDefinition from the given BeanDefinitionBuilder and inspects the backing
Element s id attribute for a name. |
public BeanComponentDefinitionBuilder(Element defaultSource, ParserContext context)
BeanComponentDefinitionBuilder
using the given Element
as default source and the
given ParserContext
.defaultSource
- must not be null.context
- must not be null.public BeanComponentDefinition getComponent(BeanDefinitionBuilder builder)
BeanComponentDefinition
from the given BeanDefinitionBuilder
. Will generate a bean name.builder
- must not be null.public BeanComponentDefinition getComponentIdButFallback(BeanDefinitionBuilder builder, String fallback)
BeanComponentDefinition
from the given BeanDefinitionBuilder
and inspects the backing
Element
s id attribute for a name. It will use this one if found or the given fallback if not.builder
- must not be null.fallback
- must not be null or empty.public BeanComponentDefinition getComponent(BeanDefinitionBuilder builder, String name)
BeanComponentDefinition
from the given BeanDefinitionBuilder
using the given name.builder
- must not be null.name
- must not be null or empty.public BeanComponentDefinition getComponent(BeanDefinitionBuilder builder, String name, Object rawSource)
BeanComponentDefinition
from the given BeanDefinitionBuilder
using the given name and
raw source object.builder
- must not be null.name
- must not be null.rawSource
- Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.