Package org.jboss.spring.metadata

Examples of org.jboss.spring.metadata.AbstractImportMetaData


   public static final ImportInterceptor INTERCEPTOR = new ImportInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractSpringDeployment deployment = (AbstractSpringDeployment)parent;
      AbstractImportMetaData importMD = (AbstractImportMetaData)child;
      deployment.addImport(importMD);
   }
View Full Code Here


    */
   public static final ImportHandler HANDLER = new ImportHandler();

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      return new AbstractImportMetaData();
   }
View Full Code Here

      return new AbstractImportMetaData();
   }

   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
   {
      AbstractImportMetaData imd = (AbstractImportMetaData) o;
      for (int i = 0; i < attrs.getLength(); ++i)
      {
         String localName = attrs.getLocalName(i);
         if ("resource".equals(localName))
            imd.setResource(attrs.getValue(i));
      }
   }
View Full Code Here

      }
   }

   public Object endElement(Object object, QName qName, ElementBinding elementBinding)
   {
      AbstractImportMetaData imd = (AbstractImportMetaData)object;
      if (imd.getResource() == null)
         throw new IllegalArgumentException("Missing resource: " + imd);
      return imd;
   }
View Full Code Here

TOP

Related Classes of org.jboss.spring.metadata.AbstractImportMetaData

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.