|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
org.apache.tuscany.sca.extensibility.osgi.OSGiServiceDiscoverer.ClassLoaderImpl
public class OSGiServiceDiscoverer.ClassLoaderImpl
This class loader provides resource access to META-INF/services/... which is used by many frameworks. OSGi Import-Package and DynmaicImport-Package headers do not support split packages. Another option is to use Require-Bundle header. We can collect the list of bundles and add them as required bundles to a special gateway bundle.
Constructor Summary | |
---|---|
OSGiServiceDiscoverer.ClassLoaderImpl()
|
Method Summary | |
---|---|
protected java.net.URL |
findResource(java.lang.String name)
Open a back-door to expose the META-INF/services resources |
protected java.util.Enumeration<java.net.URL> |
findResources(java.lang.String name)
Open a back-door to expose the META-INF/services resources |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass, getPermissions |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSGiServiceDiscoverer.ClassLoaderImpl()
Method Detail |
---|
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader
protected java.util.Enumeration<java.net.URL> findResources(java.lang.String name) throws java.io.IOException
findResources
in class java.lang.ClassLoader
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |