Package org.jboss.portal.common.concurrent

Examples of org.jboss.portal.common.concurrent.Valve


         throw new IllegalArgumentException("No null info is accepted");
      }

      //
      this.info = info;
      this.valve = new Valve();
      this.log = Logger.getLogger("org.jboss.portal.portlet.container." + info.getClassName().replace('.', '_'));
      this.started = false;
      this.filters = new HashSet<PortletFilterImpl>();
   }
View Full Code Here


   public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
   {
      PortletContainerImpl container = (PortletContainerImpl)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);

      //
      Valve valve = container.getValve();

      if (valve.beforeInvocation())
      {
         PortletInvocationResponse response;

         try
         {
            response = super.invoke(invocation);
         }
         finally
         {
            // Release the valve
            valve.afterInvocation();
         }

         // Stop the container if necessary
         if (response instanceof UnavailableResponse)
         {
View Full Code Here

TOP

Related Classes of org.jboss.portal.common.concurrent.Valve

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.