This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ApplicationScoped | |
| public class ServiceListener { | |
| public void bindService(@Observes @Specification(MyService.class) ServiceArrival event) { | |
| System.out.println("A new service just arrived"); | |
| MyService arrived = event.type(MyService.class).getService(); | |
| } | |
| public void unbindService(@Observes @Specification(MyService.class) ServiceDeparture event) { | |
| System.out.println("A service just went out"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.sample.ws; | |
| import java.lang.reflect.Method; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory; | |
| import org.apache.cxf.endpoint.Client; | |
| import org.apache.cxf.service.model.MessagePartInfo; | |
| import org.apache.cxf.service.model.OperationInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jboss.weld.environment.osgi.integration; | |
| import java.util.Hashtable; | |
| import java.util.Map; | |
| import org.jboss.weld.bean.proxy.ProxyMethodHandler; | |
| import org.jboss.weld.bootstrap.api.Singleton; | |
| import org.jboss.weld.bootstrap.api.SingletonProvider; | |
| import org.osgi.framework.Bundle; | |
| import org.osgi.framework.FrameworkUtil; |
NewerOlder