gboat2.base.core
类 GBoatClassLoader

java.lang.Object
  继承者 java.lang.ClassLoader
      继承者 gboat2.base.core.GBoatClassLoader

public final class GBoatClassLoader
extends ClassLoader


方法摘要
 void add(String packageName, org.osgi.framework.Bundle bundle)
           
 Class<?> findClass(String className)
           
 String getActionPackage(String bundleName)
          根据Bundle名称获取该Bundle下的Action包名
 org.osgi.framework.Bundle getBundle(String packageName)
           
 Map<String,String> getBundleActionPackage()
           
 Map<String,org.osgi.framework.Bundle> getBundleClassLoaders()
           
static GBoatClassLoader getInstance()
           
 
从类 java.lang.ClassLoader 继承的方法
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getInstance

public static GBoatClassLoader getInstance()

add

public void add(String packageName,
                org.osgi.framework.Bundle bundle)

getBundle

public org.osgi.framework.Bundle getBundle(String packageName)

getActionPackage

public String getActionPackage(String bundleName)
根据Bundle名称获取该Bundle下的Action包名

参数:
bundleName -
返回:

findClass

public Class<?> findClass(String className)
                   throws ClassNotFoundException
覆盖:
ClassLoader 中的 findClass
抛出:
ClassNotFoundException

getBundleClassLoaders

public Map<String,org.osgi.framework.Bundle> getBundleClassLoaders()

getBundleActionPackage

public Map<String,String> getBundleActionPackage()


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.