Examples of release()


Examples of org.jboss.netty.channel.socket.nio.SocketSendBufferPool.SendBuffer.release()

                        }
                    }

                    if (buf.finished()) {
                        // Successful write - proceed to the next message.
                        buf.release();
                        channel.currentWriteEvent = null;
                        channel.currentWriteBuffer = null;
                        evt = null;
                        buf = null;
                        future.setSuccess();
View Full Code Here

Examples of org.jboss.portletbridge.context.InitFacesContext.release()

        renderKit
            .addRenderer(
                UIViewRoot.COMPONENT_FAMILY,
                UIViewRoot.COMPONENT_TYPE,
                richFacesHelper.getViewRootRenderer());
        context.release();
      }
    } catch (FacesException e) {
      throw new BridgeException("JSF Initialization error", e);
    }
  }
View Full Code Here

Examples of org.jboss.resource.adapter.mail.inflow.MailActivation.release()

      ActivationSpec spec)
   {
      log.debug("endpointDeactivation, spec="+spec);
      MailActivation activation = (MailActivation) activations.remove(spec);
      if (activation != null)
         activation.release();
   }

   public XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException
   {
      return new XAResource[0];
View Full Code Here

Examples of org.jboss.seam.mock.MockFacesContext.release()

      {
         //Finally, clean up the contexts
         try
         {
            FacesLifecycle.endRequest( facesContext.getExternalContext() );
            facesContext.release();
            log.debug("done running exception handlers");
         }
         catch (Exception ere)
         {
            log.error("could not destroy contexts", ere);
View Full Code Here

Examples of org.jboss.security.plugins.auth.JaasSecurityManagerBase.DomainInfo.release()

         synchronized (principal.getName().intern())
         {
            if (cacheInfo != null)
            {
               isValid = validateCache(cacheInfo, credential, activeSubject);
               cacheInfo.release();
            }
            if (isValid == false)
               isValid = authenticate(principal, credential, activeSubject);
         }
      }
View Full Code Here

Examples of org.jboss.soa.esb.helpers.persist.JdbcCleanConn.release()

          log.error( "SqlException while trying to close prepared statement PS", e );
        }
      }
      if (null != oConn)
      {
        oConn.release();
      }
    }
  } // __________________________________
 
  /*
 
View Full Code Here

Examples of org.jboss.test.faces.FacesEnvironment.FacesRequest.release()

        FacesContext facesContext = FacesContext.getCurrentInstance();
        AbstractDataGrid component = (AbstractDataGrid) facesContext.getViewRoot().findComponent("dataGrid");
        DataGridRenderer renderer = (DataGridRenderer) FacesContext.getCurrentInstance().getRenderKit()
            .getRenderer(component.getFamily(), component.getRendererType());
        assertEquals(AbstractDataGrid.class, renderer.getComponentClass());
        facesRequest.release();
    }

    @Test
    public final void testDoEncodeChildren() throws IOException {
        HtmlPage page = environment.getPage("/dataGridTest.jsf");
View Full Code Here

Examples of org.jboss.test.faces.mock.MockFacesEnvironment.release()

        expectLastCall().anyTimes();
        environment.replay();
        ScriptUtils.writeToStream(mockWriter, Collections.singletonMap("delay", Integer.valueOf(1500)));
        environment.verify();
        assertCaptureEquals(capture, "{\"delay\":1500}");
        environment.release();
    }

    /**
     * @author shura
     */
 
View Full Code Here

Examples of org.jbpm.task.service.TaskClient.release()

        if (taskSummary == null) {
            return;
        }

        BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
        client.release(taskSummary.getId(), userId, responseHandler);
        responseHandler.waitTillDone(3000);
        refresh();
    }

    public void suspend() {
View Full Code Here

Examples of org.jclouds.io.Payload.release()

         Payload payload = newFilePayload(f);
         byte[] digest = digester.digest();
         payload.getContentMetadata().setContentMD5(digest);
         Multimap<String, String> headers = client.postPayloadAndReturnHeaders("", payload);
         assertEquals(headers.get("x-Content-MD5"), ImmutableList.of(base64().encode(digest)));
         payload.release();
      } finally {
         if (f != null && f.exists())
            f.delete();
      }
   }
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.