[jboss-user] [Microcontainer] - Re: Code example for a basic parsing deployer
alesj
do-not-reply at jboss.com
Wed Mar 26 10:03:02 EDT 2008
"david.lloyd at jboss.com" wrote : The only piece of the puzzle missing for me is how to write the actual deployer which takes the metadata and converts it into a bean deployment (that's how it's supposed to work, right?), presumably feeding that back to the MC so that it can do its magic.
You (usually) don't have to write the deployer, you only need to write your metadata classes. Or better, you need to properly annotate them.
You have two approaches - if we're talking about creating bean deployment.
1) Your custom xml is included in existing beans deployment
Have proper annotations on metadata, register schema and your metadata class must implement org.jboss.beans.metadata.spi.BeanMetaDataFactory.
e.g.
- http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/trunk/classloading-vfs/src/main/org/jboss/classloading/spi/vfs/metadata/VFSClassLoaderFactory.java
2) You have custom xml file
Have proper annotations on metadata.
Use both of previous Adrian's suggestions.
Now you need to create proper components that MC will understand.
See this thread for more info:
- http://www.jboss.org/index.html?module=bb&op=viewtopic&t=130527
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138979#4138979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138979
More information about the jboss-user
mailing list