41 * <li>For jimage content: /{module name}/{package1}/.../{packageN}/{file
42 * name}</li>
43 * <li>For top-level files:/{module name}/{file name}</li>
44 * <li>For other files (shared lib, launchers, config, ...):/{module name}/
45 * {@literal bin|conf|native}/{dir1}/.../{dirN}/{file name}</li>
46 * </ul>
47 */
48 public interface ResourcePoolEntry {
49
50 /**
51 * Type of module data.
52 * <li>
53 * <ul>CLASS_OR_RESOURCE: A java class or resource file.</ul>
54 * <ul>CONFIG: A configuration file.</ul>
55 * <ul>HEADER_FILE: A header file.</ul>
56 * <ul>LEGAL_NOTICE: A legal notice.</ul>
57 * <ul>MAN_PAGE: A man page.</ul>
58 * <ul>NATIVE_CMD: A native executable launcher.</ul>
59 * <ul>NATIVE_LIB: A native library.</ul>
60 * <ul>TOP: A top-level file in the jdk run-time image directory.</ul>
61 * <ul>OTHER: Other kind of file.</ul>
62 * </li>
63 */
64 public enum Type {
65 CLASS_OR_RESOURCE,
66 CONFIG,
67 HEADER_FILE,
68 LEGAL_NOTICE,
69 MAN_PAGE,
70 NATIVE_CMD,
71 NATIVE_LIB,
72 TOP,
73 OTHER
74 }
75
76 /**
77 * The module name of this ResourcePoolEntry.
78 *
79 * @return The module name.
80 */
81 public String moduleName();
82
83 /**
84 * The path of this ResourcePoolEntry.
85 *
86 * @return The module path.
87 */
88 public String path();
89
90 /**
91 * The ResourcePoolEntry's type.
92 *
93 * @return The data type.
|
41 * <li>For jimage content: /{module name}/{package1}/.../{packageN}/{file
42 * name}</li>
43 * <li>For top-level files:/{module name}/{file name}</li>
44 * <li>For other files (shared lib, launchers, config, ...):/{module name}/
45 * {@literal bin|conf|native}/{dir1}/.../{dirN}/{file name}</li>
46 * </ul>
47 */
48 public interface ResourcePoolEntry {
49
50 /**
51 * Type of module data.
52 * <li>
53 * <ul>CLASS_OR_RESOURCE: A java class or resource file.</ul>
54 * <ul>CONFIG: A configuration file.</ul>
55 * <ul>HEADER_FILE: A header file.</ul>
56 * <ul>LEGAL_NOTICE: A legal notice.</ul>
57 * <ul>MAN_PAGE: A man page.</ul>
58 * <ul>NATIVE_CMD: A native executable launcher.</ul>
59 * <ul>NATIVE_LIB: A native library.</ul>
60 * <ul>TOP: A top-level file in the jdk run-time image directory.</ul>
61 * </li>
62 */
63 public enum Type {
64 CLASS_OR_RESOURCE,
65 CONFIG,
66 HEADER_FILE,
67 LEGAL_NOTICE,
68 MAN_PAGE,
69 NATIVE_CMD,
70 NATIVE_LIB,
71 TOP
72 }
73
74 /**
75 * The module name of this ResourcePoolEntry.
76 *
77 * @return The module name.
78 */
79 public String moduleName();
80
81 /**
82 * The path of this ResourcePoolEntry.
83 *
84 * @return The module path.
85 */
86 public String path();
87
88 /**
89 * The ResourcePoolEntry's type.
90 *
91 * @return The data type.
|