[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Multiple parsing implementation in RARDeployer
alesj
do-not-reply at jboss.com
Thu May 29 05:29:34 EDT 2008
"vickyk" wrote :
| Yes I understand that the mapping is the info of deployment descrptor to metadata , so I have the code like this
|
| public RARParserDeployer()
| | {
| | super(RARDeploymentMetaData.class, new HashMap());
| | mappings = getMappings();
| | mappings.put(jeeSpecRarDD, ConnectorMetaData.class);
| | mappings.put(jbossRarDD, JBossRAMetaData.class);
| | }
| |
|
| Is this not right ?
|
You can do that via static code:
| private static Map<String, Class<?>> getCustomMappings()
| {
| Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
| mappings.put("rar.xml", RarMetaData.class);
| mappings.put("jboss-rar.xml", JBossRarMetaData.class);
| mappings.put("alias.xml", AliasMetaData.class);
| mappings.put("alias-ext.xml", AliasMetaData.class);
| return mappings;
| }
|
| public MultiRarDeployer()
| {
| super(RarDeploymentMetaData.class, getCustomMappings());
| }
|
"vickyk" wrote :
| anonymous wrote : But who is depending on this method?
|
| EJB deployer seems to be dependent on it , all the jca test which need EJB deployment is failing .
| Can you put this method back so that I can confirm it ?
|
Why is EJB deployer using that? :-)
OK, I'll have a look, since this is not your rar issue.
If you were able to comment mappings, I'm sure you can add that method as well. ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154202#4154202
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154202
More information about the jboss-dev-forums
mailing list