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

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


         }

         //
         if (status != previousStatus)
         {
            getListener().onEvent(new ManagedObjectLifeCycleEvent(this, status));
         }

         //
         if (status == LifeCycleStatus.STARTED)
         {
View Full Code Here


            {
               status = LifeCycleStatus.STOPPED;
            }

            //
            getListener().onEvent(new ManagedObjectLifeCycleEvent(this, LifeCycleStatus.STOPPED));
         }
      }
      finally
      {
         active = false;
View Full Code Here

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

            // 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

         }

         //
         if (status != previousStatus)
         {
            getListener().onEvent(new ManagedObjectLifeCycleEvent(this, status));
         }

         //
         if (status == LifeCycleStatus.STARTED)
         {
View Full Code Here

            {
               status = LifeCycleStatus.STOPPED;
            }

            //
            getListener().onEvent(new ManagedObjectLifeCycleEvent(this, LifeCycleStatus.STOPPED));
         }
      }
      finally
      {
         active = false;
View Full Code Here

         }

         //
         if (status != previousStatus)
         {
            getListener().onEvent(new ManagedObjectLifeCycleEvent(this, status));
         }

         //
         if (status == LifeCycleStatus.STARTED)
         {
View Full Code Here

            {
               status = LifeCycleStatus.STOPPED;
            }

            //
            getListener().onEvent(new ManagedObjectLifeCycleEvent(this, LifeCycleStatus.STOPPED));
         }
      }
      finally
      {
         active = false;
View Full Code Here

            //
            if (failure == null)
            {
               if (next == to)
               {
                  getListener().onEvent(new ManagedObjectLifeCycleEvent(this, next));
               }
            }
            else
            {
               getListener().onEvent(new ManagedObjectFailedEvent(this, next));
View Full Code Here

         {
            status = to;
         }

         //
         getListener().onEvent(new ManagedObjectLifeCycleEvent(this, to));
      }
   }
View Full Code Here

TOP

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

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.