loaderinfo.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 55 行

JAVA
55
字号
/*------------------------------------------------------------------------------Name:      LoaderInfo.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.util.classloader;/** * Helper struct holding infos about a plugin class and its pathes */public class LoaderInfo {   /** "org.xmlBlaster.protocol.corba.CorbaDriver" */   public String pluginName;   /**    * The path only:    * if from "/home/xmlblast/xmlBlaster/lib/xmlBlaster.jar" -> "/home/xmlblast/xmlBlaster/lib/"    * if from class file -> "/home/xmlblast/xmlBlaster/classes/"    */   public String rootPath;   /** "/home/xmlblast/xmlBlaster/lib/xmlBlaster.jar" or null if not from jar file loaded */   public String jarPath;   /** "xmlBlaster.jar" or null if not from jar file */   public String jarName;   /** "org/xmlBlaster/protocol/corba/CorbaDriver" */   public String pluginSlashed;   /**    * Path where we search for jar files for this plugin    *  "/home/xmlblast/xmlBlaster/lib/org/xmlBlaster/protocol/corba/CorbaDriver"    */   public String basePath;   public LoaderInfo(String pluginName, String rootPath, String jarPath,                     String jarName, String pluginSlashed) {      this.pluginName = pluginName;      this.rootPath = rootPath;      this.jarPath = jarPath;      this.jarName = jarName;      this.pluginSlashed = pluginSlashed;      this.basePath = this.rootPath + this.pluginSlashed;   }   public String toString() {      return "pluginName=" + pluginName + " rootPath=" + rootPath +          " jarPath=" + jarPath + " jarName=" + jarName +         " pluginSlashed=" + pluginSlashed +          " basePath=" + basePath;   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?