47 * </ul> 48 */ 49 public interface ResourcePoolEntry { 50 51 /** 52 * Type of module data. 53 * <li> 54 * <ul>CLASS_OR_RESOURCE: A java class or resource file.</ul> 55 * <ul>CONFIG: A configuration file.</ul> 56 * <ul>NATIVE_CMD: A native process launcher.</ul> 57 * <ul>NATIVE_LIB: A native library.</ul> 58 * <ul>TOP: A top-level file in the jdk run-time image directory.</ul> 59 * <ul>OTHER: Other kind of file.</ul> 60 * </li> 61 */ 62 public enum Type { 63 CLASS_OR_RESOURCE, 64 CONFIG, 65 NATIVE_CMD, 66 NATIVE_LIB, 67 TOP, 68 OTHER 69 } 70 71 /** 72 * The module name of this ResourcePoolEntry. 73 * 74 * @return The module name. 75 */ 76 public String moduleName(); 77 78 /** 79 * The path of this ResourcePoolEntry. 80 * 81 * @return The module path. 82 */ 83 public String path(); 84 85 /** 86 * The ResourcePoolEntry's type. | 47 * </ul> 48 */ 49 public interface ResourcePoolEntry { 50 51 /** 52 * Type of module data. 53 * <li> 54 * <ul>CLASS_OR_RESOURCE: A java class or resource file.</ul> 55 * <ul>CONFIG: A configuration file.</ul> 56 * <ul>NATIVE_CMD: A native process launcher.</ul> 57 * <ul>NATIVE_LIB: A native library.</ul> 58 * <ul>TOP: A top-level file in the jdk run-time image directory.</ul> 59 * <ul>OTHER: Other kind of file.</ul> 60 * </li> 61 */ 62 public enum Type { 63 CLASS_OR_RESOURCE, 64 CONFIG, 65 NATIVE_CMD, 66 NATIVE_LIB, 67 HEADER_FILE, 68 MAN_PAGE, 69 TOP, 70 OTHER 71 } 72 73 /** 74 * The module name of this ResourcePoolEntry. 75 * 76 * @return The module name. 77 */ 78 public String moduleName(); 79 80 /** 81 * The path of this ResourcePoolEntry. 82 * 83 * @return The module path. 84 */ 85 public String path(); 86 87 /** 88 * The ResourcePoolEntry's type. |