org.ow2.easywsdl.extensions.wsdl4complexwsdl
Class WSDL4ComplexWsdlWriters

java.lang.Object
  extended by org.ow2.easywsdl.extensions.wsdl4complexwsdl.WSDL4ComplexWsdlWriters

public final class WSDL4ComplexWsdlWriters
extends java.lang.Object

A static pool of WSDL4ComplexWsdlWriter to improve WSDL4ComplexWsdlWriter creation efficiency.

A WSDL4ComplexWsdlWriter is initialized the first time this class is used. An infinite number (integer maximum value) of WSDL4ComplexWsdlWriter may be created. They are never evicted.

Author:
Nicolas Oddoux - EBM WebSourcing

Constructor Summary
WSDL4ComplexWsdlWriters()
           
 
Method Summary
static void releaseWSDL4ComplexWsdlWriter(WSDL4ComplexWsdlWriter wsdl4ComplexWsdlWriter)
          Release a WSDL4ComplexWsdlWriter to the pool
static WSDL4ComplexWsdlWriter takeWSDL4ComplexWsdlWriter()
          Take a WSDL4ComplexWsdlWriter from the pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDL4ComplexWsdlWriters

public WSDL4ComplexWsdlWriters()
Method Detail

takeWSDL4ComplexWsdlWriter

public static final WSDL4ComplexWsdlWriter takeWSDL4ComplexWsdlWriter()
                                                               throws com.ebmwebsourcing.easycommons.pooling.PoolException
Take a WSDL4ComplexWsdlWriter from the pool

Returns:
one WSDL4ComplexWsdlWriter
Throws:
com.ebmwebsourcing.easycommons.pooling.PoolException - if the current thread waits for a WSDL4ComplexWsdlWriter of the pool and is interrupted

releaseWSDL4ComplexWsdlWriter

public static final void releaseWSDL4ComplexWsdlWriter(WSDL4ComplexWsdlWriter wsdl4ComplexWsdlWriter)
Release a WSDL4ComplexWsdlWriter to the pool

Parameters:
wsdl4ComplexWsdlWriter - a WSDL4ComplexWsdlWriter to release


Copyright © 2008-2012 Petals Link (previously EBM WebSourcing). All Rights Reserved.