Examples of PostInstallType


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

    * @see org.jboss.ejb3.packagemanager.PackageContext#getPostInstallScripts()
    */
   @Override
   public List<ScriptType> getPostInstallScripts()
   {
      PostInstallType postInstall = this.pkg.getPostInstall();
      if (postInstall == null)
      {
         return Collections.EMPTY_LIST;
      }
      List<ScriptType> postInstallScripts = postInstall.getScripts();
      if (postInstallScripts == null)
      {
         return Collections.EMPTY_LIST;
      }
      return Collections.unmodifiableList(postInstallScripts);
View Full Code Here

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

                  PreInstallType preInstall = processPreInstall(pkgMeta, xmlStreamReader);
                  pkgMeta.setPreInstall(preInstall);
               }
               else if (childElement.equals("post-install"))
               {
                  PostInstallType postInstall = processPostInstall(pkgMeta, xmlStreamReader);
                  pkgMeta.setPostInstall(postInstall);
               }
               else if (childElement.equals("pre-uninstall"))
               {
                  PreUnInstallType preUnInstall = processPreUnInstall(pkgMeta, xmlStreamReader);
View Full Code Here

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

    * @return
    * @throws Exception
    */
   private PostInstallType processPostInstall(PackageType pkgMeta, XMLStreamReader2 xmlStreamReader) throws Exception
   {
      PostInstallType postInstall = new PostInstallImpl(pkgMeta);
      int event = xmlStreamReader.next();
      while (event != XMLEvent.END_ELEMENT)
      {
         switch (event)
         {
            case XMLEvent.START_ELEMENT :
               String childElement = xmlStreamReader.getLocalName();
               if (childElement.equals("script"))
               {
                  PostInstallScript script = processPostInstallScript(postInstall, xmlStreamReader);
                  postInstall.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.