Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.ObjectModelFactory


      // create unmarshaller
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();

      // create an instance of ObjectModelFactory
      ObjectModelFactory factory = new ConfigInfoBinding();

      // let the object model factory to create an instance of Book and populate it with data from XML
      ConfigInfo ci = (ConfigInfo)unmarshaller.unmarshal(is, factory, null);

      // close the XML stream
View Full Code Here


   */
  private void initializeBindings() throws Exception
   {
      log.debug("Reading resource: '" + resourceName + "'");
     
      ObjectModelFactory omf = new AttributeMappingsBinding();
      InputStream is = null;
      AttributeMappings mappings = null;
      try
      {
         // locate resource
View Full Code Here

   public void start()
      throws Exception
   {
      log.debug("Reading resource: '" + notificationMapResName + "'");
     
      ObjectModelFactory omf = new NotificationBinding();
      InputStream is = null;
      try
      {
         // locate notifications.xml
         final String resName = notificationMapResName;
View Full Code Here

      else if (this.ddProcessor != null)
      {
         InputSource source = new VFSInputSource(file);
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         unmarshaller.setValidation(this.ddProcessor.isValidating());
         ObjectModelFactory factory = this.ddProcessor.getFactory(file.toURL());
         return (T)unmarshaller.unmarshal(source, factory, root);
      }

      return null;
   }
View Full Code Here

      if (root != null && expectedType.isInstance(root))
         tRoot = expectedType.cast(root);
      else
         tRoot = null;

      ObjectModelFactory objectModelFactory = getObjectModelFactory(expectedType, file, tRoot);
      if (objectModelFactory == null)
         log.warn("ObjectModelFactory factory is null, expectedType=" + expectedType + ", file=" + file);

      InputSource source = new VFSInputSource(file);
      return getHelper().parse(expectedType, source, tRoot, objectModelFactory);
View Full Code Here

   private static final Logger log = Logger.getLogger(EjbJarDDObjectFactory.class);

   public static EjbJarDD parse(URL ddResource) throws JBossXBException, IOException
   {
      ObjectModelFactory factory = null;
      Unmarshaller unmarshaller = null;
      EjbJarDD dd = null;

      if (ddResource != null)
      {
View Full Code Here

   private EjbJarDD dd;
   private Class ejbClass;

   public static EjbJarDD parse(URL ddResource, EjbJarDD dd) throws JBossXBException, IOException
   {
      ObjectModelFactory factory = null;
      Unmarshaller unmarshaller = null;

      if (ddResource != null)
      {
         log.debug("found jboss.xml " + ddResource);
View Full Code Here

      if (root != null && expectedType.isInstance(root))
         tRoot = expectedType.cast(root);
      else
         tRoot = null;

      ObjectModelFactory objectModelFactory = getObjectModelFactory(expectedType, file, tRoot);
      if (objectModelFactory == null)
         log.warn("ObjectModelFactory factory is null, expectedType=" + expectedType + ", file=" + file);
     
      return getHelper().parse(expectedType, file, tRoot, objectModelFactory);
   }
View Full Code Here

            throw new RuntimeException("Couldn't open default XML WSRP Consumer configuration file", e);
         }
      }

      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      ObjectModelFactory factory = new XMLWSRPConsumerFactory(this);
      if (entityResolver == null)
      {
         log.debug("Could not obtain entity resolver for XMLConsumerRegistry");
         entityResolver = new NullEntityResolver();
      }
View Full Code Here

      if (root != null && expectedType.isInstance(root))
         tRoot = expectedType.cast(root);
      else
         tRoot = null;

      ObjectModelFactory objectModelFactory = getObjectModelFactory(expectedType, file, tRoot);
      if (objectModelFactory == null)
         log.warn("ObjectModelFactory factory is null, expectedType=" + expectedType + ", file=" + file);

      InputSource source = new VFSInputSource(file);
      return getHelper().parse(expectedType, source, tRoot, objectModelFactory);
View Full Code Here

TOP

Related Classes of org.jboss.xb.binding.ObjectModelFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.