[ 
https://jira.jboss.org/browse/SOLDER-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pete Muir moved WELDX-37 to SOLDER-16:
--------------------------------------

     Project: Seam Solder  (was: Weld Extensions)
         Key: SOLDER-16  (was: WELDX-37)
    Assignee:     (was: Takeshi Kondo)


> Java based DSL configuration of BeanDeploymentArchive
> -----------------------------------------------------
>
>                 Key: SOLDER-16
>                 URL: https://jira.jboss.org/browse/SOLDER-16
>             Project: Seam Solder
>          Issue Type: Feature Request
>            Reporter: Takeshi Kondo
>            Priority: Minor
>         Attachments: dsl-configuration-impl-testcase.patch, 
> dsl-configuration-impl.patch, dsl-configuration-interface.patch, 
> dsl-configuration-test-case.patch, 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to