Package org.gatein.pc.portlet.container.managed

Examples of org.gatein.pc.portlet.container.managed.LifeCycleStatus


         {
            return;
         }

         //
         LifeCycleStatus previousStatus = status;

         //
         if (status != LifeCycleStatus.STARTED)
         {
            LifeCycleStatus status = LifeCycleStatus.FAILED;
            try
            {
               invokeStart();
               status = LifeCycleStatus.STARTED;
            }
View Full Code Here


            // and more specifically, their lifecycle eventds
            if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
            {
               ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
               LifeCycleStatus status = lifeCycleEvent.getStatus();
               if (LifeCycleStatus.STARTED.equals(status))
               {
                  // if the portlet started, add it to the service description
                  final PortletInfo info = portletContainer.getInfo();
                  // but only if it's remotable
View Full Code Here

            org.gatein.pc.api.PortletContext pc = org.gatein.pc.api.PortletContext.createPortletContext(applicationId, containerId);

            if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
            {
               ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
               LifeCycleStatus status = lifeCycleEvent.getStatus();
               if (LifeCycleStatus.STARTED.equals(status))
               {
                  final PortletInfo info = portletContainer.getInfo();
                  // only add the portlet if it's remotable
                  if (isRemotable(info.getRuntimeOptionsInfo()))
View Full Code Here

         {
            return;
         }

         //
         LifeCycleStatus previousStatus = status;

         //
         if (status != LifeCycleStatus.STARTED)
         {
            LifeCycleStatus status = LifeCycleStatus.FAILED;
            try
            {
               invokeStart();
               status = LifeCycleStatus.STARTED;
            }
View Full Code Here

         {
            return;
         }

         //
         LifeCycleStatus previousStatus = status;

         //
         if (status != LifeCycleStatus.STARTED)
         {
            LifeCycleStatus status = LifeCycleStatus.FAILED;
            try
            {
               invokeStart();
               status = LifeCycleStatus.STARTED;
            }
View Full Code Here

      failure = null;
      try
      {
         while (to.getStage() > status.getStage())
         {
            LifeCycleStatus current = status;
            promote();
            if (current == status)
            {
               break;
            }
View Full Code Here

      }
   }

   private void promote() throws IllegalStateException
   {
      LifeCycleStatus to = status.getPromotion();

      //
      if (to != null)
      {
         Throwable failure = null;
         try
         {
            LifeCycleStatus next = status;
            try
            {
               switch (to)
               {
                  case CREATED:
View Full Code Here

         demoteDependents(to);

         //
         while (to.getStage() < status.getStage())
         {
            LifeCycleStatus current = status;
            demote();
            if (current == status)
            {
               break;
            }
View Full Code Here

      }
   }

   private void demote() throws IllegalStateException
   {
      LifeCycleStatus to = status.getDemotion();

      //
      if (to != null)
      {
         try
View Full Code Here

         {
            return;
         }

         //
         LifeCycleStatus previousStatus = status;

         //
         if (status != LifeCycleStatus.STARTED)
         {
            LifeCycleStatus status = LifeCycleStatus.FAILED;
            try
            {
               invokeStart();
               status = LifeCycleStatus.STARTED;
            }
View Full Code Here

TOP

Related Classes of org.gatein.pc.portlet.container.managed.LifeCycleStatus

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.