Zemian Deng [
http://community.jboss.org/people/saltnlight5] created the discussion
"Understanding deployment namespace schema with metadata parsing"
To view the discussion, visit:
http://community.jboss.org/message/551992#551992
--------------------------------------------------------------
Hi,
I am trying to understand how the deployment xml file namespace is registered with JBossXB
and how new/custom ones are added.
So far I see that org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory
has pre initialized these namespace schema with their BeanMetaDataFactory
implementations.
addJaxbSchema("urn:jboss:aop-beans:1.0",
"org.jboss.aop.microcontainer.beans.metadata.AOPDeployment");
addJaxbSchema("urn:jboss:bean-deployer",
"org.jboss.kernel.plugins.deployment.AbstractKernelDeployment10");
addJaxbSchema("urn:jboss:bean-deployer:2.0",
"org.jboss.kernel.plugins.deployment.AbstractKernelDeployment");
addJaxbSchema("urn:jboss:javabean:1.0",
"org.jboss.javabean.plugins.jaxb.JavaBean10");
addJaxbSchema("urn:jboss:javabean:2.0",
"org.jboss.javabean.plugins.jaxb.JavaBean20");
addJaxbSchema("urn:jboss:policy:1.0",
"org.jboss.beans.metadata.plugins.policy.AbstractPolicyMetaData");
addJaxbSchema("urn:jboss:classloading:1.0",
"org.jboss.classloading.spi.metadata.ClassLoadingMetaData10");
addJaxbSchema("urn:jboss:classloader:1.0",
"org.jboss.classloading.spi.vfs.metadata.VFSClassLoaderFactory10");
addJaxbSchema("urn:jboss:deployers:2.0",
"org.jboss.deployers.vfs.plugins.xb.SchemaResolverDeployerMetaData");
So how are newly defined schemas registered? For example the
org.jboss.hibernate.deployers.metadata.HibernateMetaData, when or what is parsing the
JBossXmlSchema annotation? Is this all there is needed to registered with new
BeanMetaDataFactory?
Thanks,
Zemian Deng
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/551992#551992]
Start a new discussion in JBoss Microcontainer at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]