public class OSGiClassLoaderServiceImpl extends ClassLoaderServiceImpl implements ClassLoaderService
ClassLoaderServiceImpl.Work<T>
Constructor and Description |
---|
OSGiClassLoaderServiceImpl(OsgiClassLoader osgiClassLoader,
OsgiServiceUtil osgiServiceUtil) |
Modifier and Type | Method and Description |
---|---|
<S> LinkedHashSet<S> |
loadJavaServices(Class<S> serviceContract)
Discovers and instantiates implementations of the named service contract.
|
void |
stop()
Stop phase notification
|
classForName, fromConfigSettings, locateResource, locateResources, locateResourceStream, withTccl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classForName, locateResource, locateResources, locateResourceStream
public OSGiClassLoaderServiceImpl(OsgiClassLoader osgiClassLoader, OsgiServiceUtil osgiServiceUtil)
public <S> LinkedHashSet<S> loadJavaServices(Class<S> serviceContract)
ClassLoaderService
Service
. Instead here we are talking about
services as defined by ServiceLoader
.loadJavaServices
in interface ClassLoaderService
loadJavaServices
in class ClassLoaderServiceImpl
S
- The type of the service contractserviceContract
- The java type defining the service contractpublic void stop()
Stoppable
stop
in interface Stoppable
stop
in class ClassLoaderServiceImpl
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.