Announcement Announcement Module
Collapse
No announcement yet.
BeanDefinitionBuilder Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BeanDefinitionBuilder

    When implementing a custom namespace handler and bean definition parser I came across the BeanDefinitionBuilder class in the Spring framework. The documentation says:

    "Programmatic means of constructing BeanDefinitions using the builder pattern. Intended primarily for use when implementing Spring 2.0 NamespaceHandlers."

    However, the constructor is protected. Did I miss anything? Should I carry on working with RootBeanDefinition API directly?

  • #2
    From the JUnit test in Spring there is this:
    Code:
    snip:
    BeanDefinitionBuilder bdb = BeanDefinitionBuilder.rootBeanDefinition(TestBean.class);
    bdb.setSingleton(false).addPropertyReference("age", "15");

    Comment

    Working...
    X