[webbeans-issues] [JBoss JIRA] Commented: (WBRI-338) Java based DSL configuration of BeanDeploymentArchive

Takeshi Kondo (JIRA) jira-events at lists.jboss.org
Tue Aug 11 12:39:18 EDT 2009


    [ https://jira.jboss.org/jira/browse/WBRI-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12480131#action_12480131 ] 

Takeshi Kondo commented on WBRI-338:
------------------------------------

Pete, my writing English is slow. so chatting on IM may be bother you. Could we talk about it on JIRA?

> I would definitely be interested in making this a top quality feature. Maybe we even make it an alternative for a real deployment as well as tests.

If you like it, I'll design Java based DSL configuration API which be matched Google Guice. 
It is the same as my attachement patch that BeanDeploymentArcheive can do.


> Java based DSL configuration of BeanDeploymentArchive
> -----------------------------------------------------
>
>                 Key: WBRI-338
>                 URL: https://jira.jboss.org/jira/browse/WBRI-338
>             Project: Web Beans
>          Issue Type: Patch
>          Components: Bootstrap
>            Reporter: Takeshi Kondo
>            Assignee: Takeshi Kondo
>            Priority: Minor
>         Attachments: dsl-test.patch, dsl.patch
>
>
> In test environment ,I frequently change configuration.
> ClssLoader scan is convenience , but it is laggardly and not flexible.
> Alternatively , I'd created new BeanDeploymentArchive which loads Java based DSL configuration.
> sample is as follows.
> -------
> > Java based DSL Configuration
> class TestBeanModule extends BeanModuleBase
>  {
>       @Override
>       protected void configure()
>       {
>          bean(TestBean.class);
>       }
>   }
> -------
> > TestCase
>  @Test(groups = "bootstrap")
>    public void testBeanModule()
>    {
>       new ModuleTest(new TestBeanModule())
>       {
>          @Override
>          protected void test()
>          {
>             BeanManagerImpl manager = CurrentManager.rootManager();
>             assert manager.getInstanceByType(TestBean.class) != null;
>          }
>       };
>    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list