|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.config.BeanComponentDefinitionBuilder
public class BeanComponentDefinitionBuilder
Helper to create BeanComponentDefinition
more easily.
Constructor Summary | |
---|---|
BeanComponentDefinitionBuilder(Element defaultSource,
ParserContext context)
Creates a new BeanComponentDefinitionBuilder using the given Element as default source and the
given ParserContext . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
-
|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |