]
Pete Muir updated WBRI-338:
---------------------------
Fix Version/s: 1.0.0.CR2
Takeshi, I'm not going to get a chance to look at this until after CR1 (the spec
complete release) - which should be in about 3 weeks time.
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
Fix For: 1.0.0.CR2
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.
-
If you think it was sent incorrectly contact one of the administrators: