KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > jbi > serviceengine > bridge > PortCreationListenerImpl


1 /*
2  * PortCreationListenerImpl.java
3  *
4  * Created on February 15, 2006, 9:59 AM
5  *
6  * To change this template, choose Tools | Options and locate the template under
7  * the Source Creation and Management node. Right-click the template and choose
8  * Open. You can then make changes to the template in the Source Editor.
9  */

10
11 package com.sun.enterprise.jbi.serviceengine.bridge;
12
13 import com.sun.enterprise.deployment.ServiceReferenceDescriptor;
14 import com.sun.enterprise.webservice.ServiceEngineUtil;
15 import com.sun.enterprise.webservice.spi.InvInterfaceCreationListener;
16 import javax.xml.ws.Dispatch;
17
18 /**
19  *
20  * @author mu125243
21  */

22 public class PortCreationListenerImpl implements InvInterfaceCreationListener{
23     
24     /**
25      * DOL for the service.
26      */

27     private ServiceReferenceDescriptor serviceRef;
28     
29     /** Creates a new instance of PortCreationListenerImpl */
30     public PortCreationListenerImpl(ServiceReferenceDescriptor serviceRef) {
31         this.serviceRef = serviceRef;
32     }
33     
34     /**
35      * Sets transport factory to NMR if port is jbi-enabled
36      * @param port instance
37      * @param service endpoint interface type
38      */

39     public <T> void portCreated(T port, Class JavaDoc<T> serviceEndpointInterface) {
40         ServiceEngineUtil.setJBITransportFactory(serviceRef, port, serviceEndpointInterface);
41     }
42        
43     /**
44      * Currently this is empty implementation
45      * @param dispatch instance
46      * @param service endpoint interface type
47      */

48     public <T> void dispatchCreated(Dispatch<T> dispatch, Class JavaDoc<T> serviceEndpointInterface) {
49         // Do nothing
50
}
51 }
52
Popular Tags