Created
May 13, 2011 08:24
-
-
Save mathieuancelin/970202 to your computer and use it in GitHub Desktop.
OSGi bridge for hybrid Java EE app
This file contains 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
import java.util.Collection; | |
import java.util.Properties; | |
import org.osgi.framework.Bundle; | |
import org.osgi.framework.BundleListener; | |
import org.osgi.framework.ServiceListener; | |
import org.osgi.framework.ServiceReference; | |
import org.osgi.framework.ServiceRegistration; | |
public interface OSGiBridge { | |
boolean registerBundleListener(BundleListener listener); | |
boolean registerServiceListener(ServiceListener listener); | |
<C, S extends C> ServiceRegistration registerService( | |
Class<C>[] contracts, S service, Properties properties); | |
<C, S extends C> ServiceRegistration registerService( | |
Class<C> contract, S service, Properties properties); | |
ServiceReference getServiceReference(Class<?> contract); | |
Collection<ServiceReference> getServiceReferences(Class<?> contract, String filter); | |
Object getService(ServiceReference ref); | |
void ungetService(ServiceReference ref); | |
Collection<Bundle> getBundles(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment