|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.config.AbstractRepositoryConfigDefinitionParser<S,T>
public abstract class AbstractRepositoryConfigDefinitionParser<S extends GlobalRepositoryConfigInformation<T>,T extends SingleRepositoryConfigInformation<S>>
Base class to implement repository namespaces. These will typically consist
of a main XML element potentially having child elements. The parser will wrap
the XML element into a GlobalRepositoryConfigInformation object and
allow either manual configuration or automatic detection of repository
interfaces.
| Constructor Summary | |
|---|---|
AbstractRepositoryConfigDefinitionParser()
|
|
| Method Summary | |
|---|---|
protected abstract S |
getGlobalRepositoryConfigInformation(Element element)
Returns a GlobalRepositoryConfigInformation implementation for
the given element. |
protected static boolean |
hasBean(Class<?> type,
BeanDefinitionRegistry registry)
Returns whether the given BeanDefinitionRegistry already contains
a bean of the given type assuming the bean name has been autogenerated. |
BeanDefinition |
parse(Element element,
ParserContext parser)
|
protected void |
postProcessBeanDefinition(T context,
BeanDefinitionBuilder builder,
BeanDefinitionRegistry registry,
Object beanSource)
Callback to post process a repository bean definition prior to actual registration. |
protected void |
registerBeansForRoot(BeanDefinitionRegistry registry,
Object source)
Callback to register additional bean definitions for a repositories root node. |
protected static String |
registerWithSourceAndGeneratedBeanName(BeanDefinitionRegistry registry,
AbstractBeanDefinition bean,
Object source)
Sets the given source on the given AbstractBeanDefinition and
registers it inside the given BeanDefinitionRegistry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRepositoryConfigDefinitionParser()
| Method Detail |
|---|
public BeanDefinition parse(Element element,
ParserContext parser)
parse in interface BeanDefinitionParserprotected abstract S getGlobalRepositoryConfigInformation(Element element)
GlobalRepositoryConfigInformation implementation for
the given element.
element -
protected void postProcessBeanDefinition(T context,
BeanDefinitionBuilder builder,
BeanDefinitionRegistry registry,
Object beanSource)
context - builder - beanSource -
protected void registerBeansForRoot(BeanDefinitionRegistry registry,
Object source)
registry - source -
protected static boolean hasBean(Class<?> type,
BeanDefinitionRegistry registry)
BeanDefinitionRegistry already contains
a bean of the given type assuming the bean name has been autogenerated.
type - registry -
protected static String registerWithSourceAndGeneratedBeanName(BeanDefinitionRegistry registry,
AbstractBeanDefinition bean,
Object source)
AbstractBeanDefinition and
registers it inside the given BeanDefinitionRegistry.
registry - bean - source -
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||