FileDocCategorySizeDatePackage
ServiceRefDescUtil.javaAPI DocGlassfish v2 API3129Fri May 04 22:36:12 BST 2007com.sun.enterprise.webservice

ServiceRefDescUtil

public class ServiceRefDescUtil extends Object
Utility used by JBI's ServiceEngine to help ServiceEngineWSDelegate retrieve corresponding ServiceReferenceDescriptor object
author
Manisha Umbarje

Fields Summary
private static ThreadLocal
localDesc
Constructors Summary
public ServiceRefDescUtil()

 
      
    
Methods Summary
public static com.sun.enterprise.deployment.ServiceReferenceDescriptorgetReference()
ServiceEngineWSDelegate retrieves the copy of ServiceReferenceDescriptor in its constructor

       //It's assumed that Service is JBI Enabled and thread local is set
       // if this method is invoked
       return (ServiceReferenceDescriptor) localDesc.get(); 
    
public voidpostServiceCreate()
After service creation the threadlocal object is destroyed

        localDesc.set(null);
    
public voidpreServiceCreate(com.sun.enterprise.deployment.ServiceReferenceDescriptor descObj)
Just before creating the Service Object, it's ServiceReferenceDescriptor object is stored in the thread local

       localDesc.set(descObj);