Package org.rapidcontext.app.plugin
Class PluginZipStorage
java.lang.Object
org.rapidcontext.core.storage.StorableObject
org.rapidcontext.core.storage.Storage
org.rapidcontext.core.storage.ZipStorage
org.rapidcontext.app.plugin.PluginZipStorage
- All Implemented Interfaces:
Comparable<Storage>
A ZIP file storage for plug-ins. This class normalizes some legacy
data objects loaded from the source ZIP file.
- Version:
- 1.0
-
Field Summary
Fields inherited from class org.rapidcontext.core.storage.ZipStorage
entries, KEY_FILE, paths, zip
Fields inherited from class org.rapidcontext.core.storage.Storage
EXT_ALL, EXT_JSON, EXT_PROPERTIES, EXT_XML, EXT_YAML, KEY_MOUNT_OVERLAY_PATH, KEY_MOUNT_OVERLAY_PRIO, KEY_MOUNT_PATH, KEY_MOUNT_TIME, KEY_READWRITE, PATH_STORAGEINFO
Fields inherited from class org.rapidcontext.core.storage.StorableObject
dict, KEY_ACTIVATED_TIME, KEY_CLASSNAME, KEY_ID, KEY_TYPE, PREFIX_COMPUTED, PREFIX_HIDDEN
-
Constructor Summary
ConstructorDescriptionPluginZipStorage
(String pluginId, File zipFile) Creates a new read-only ZIP file storage for a plug-in. -
Method Summary
Methods inherited from class org.rapidcontext.core.storage.ZipStorage
destroy, file, init, load, locatePath, lookup, remove, store
Methods inherited from class org.rapidcontext.core.storage.Storage
compareTo, isReadWrite, load, localPath, mountOverlayPath, mountOverlayPrio, mountTime, objectName, objectPath, path, query, serialize, serializedPath, setMountInfo, unserialize
Methods inherited from class org.rapidcontext.core.storage.StorableObject
activate, activatedTime, id, isActive, isModified, passivate, serialize, sterilize, toString, type
-
Constructor Details
-
PluginZipStorage
Creates a new read-only ZIP file storage for a plug-in.- Parameters:
pluginId
- the plug-in identifierzipFile
- the ZIP file to use- Throws:
IOException
- if the ZIP couldn't be opened properly
-