Examples of PreUnInstallType


Examples of org.jboss.ejb3.packagemanager.metadata.PreUnInstallType

    * @see org.jboss.ejb3.packagemanager.PackageContext#getPreUnInstallScripts()
    */
   @Override
   public List<ScriptType> getPreUnInstallScripts()
   {
      PreUnInstallType preUnInstall = this.pkg.getPreUninstall();
      if (preUnInstall == null)
      {
         return Collections.EMPTY_LIST;
      }
      List<ScriptType> preUnInstallScripts = preUnInstall.getScripts();
      if (preUnInstallScripts == null)
      {
         return Collections.EMPTY_LIST;
      }
      return Collections.unmodifiableList(preUnInstallScripts);
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.metadata.PreUnInstallType

                  PostInstallType postInstall = processPostInstall(pkgMeta, xmlStreamReader);
                  pkgMeta.setPostInstall(postInstall);
               }
               else if (childElement.equals("pre-uninstall"))
               {
                  PreUnInstallType preUnInstall = processPreUnInstall(pkgMeta, xmlStreamReader);
                  pkgMeta.setPreUnInstall(preUnInstall);
               }
               else if (childElement.equals("post-uninstall"))
               {
                  PostUnInstallType postUnInstall = processPostUnInstall(pkgMeta, xmlStreamReader);
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.metadata.PreUnInstallType

    * @return
    * @throws Exception
    */
   private PreUnInstallType processPreUnInstall(PackageType pkgMeta, XMLStreamReader2 xmlStreamReader) throws Exception
   {
      PreUnInstallType preInstall = new PreUnInstallImpl(pkgMeta);
      int event = xmlStreamReader.next();
      while (event != XMLEvent.END_ELEMENT)
      {
         switch (event)
         {
            case XMLEvent.START_ELEMENT :
               String childElement = xmlStreamReader.getLocalName();
               if (childElement.equals("script"))
               {
                  PreUninstallScript script = processPreUnInstallScript(preInstall, xmlStreamReader);
                  preInstall.addScript(script);
               }
               break;
         }
         event = xmlStreamReader.next();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.