|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.internal.adaptor.EclipseStorageHook
public final class EclipseStorageHook
Field Summary | |
---|---|
static int |
HASHCODE
|
static java.lang.String |
KEY
|
Constructor Summary | |
---|---|
EclipseStorageHook()
|
Method Summary | |
---|---|
void |
addHooks(HookRegistry hookRegistry)
Adds hooks to the specified hook registry. |
boolean |
compare(KeyedElement other)
Compares this element with a specified element |
void |
copy(StorageHook storageHook)
Copies the data from the specified storage hook into this storage hook. |
StorageHook |
create(BaseData bundledata)
Creates an uninitialized storage hook for the specified bundledata. |
boolean |
forgetStartLevelChange(int startlevel)
Gets called by a base data during BundleData.setStartLevel(int) . |
boolean |
forgetStatusChange(int status)
Gets called by a base data during BundleData.setStatus(int) . |
FrameworkAdaptor |
getAdaptor()
|
BaseData |
getBaseData()
|
java.lang.String |
getBuddyList()
|
java.util.Dictionary |
getGeneratedManifest()
|
java.lang.Object |
getKey()
Returns the key for this element |
int |
getKeyHashCode()
Returns the hash code of the key |
java.lang.String[] |
getLazyStartExcludes()
|
java.lang.String[] |
getLazyStartIncludes()
|
java.util.Dictionary |
getManifest(boolean firstLoad)
Returns the manifest for the data in this storage hook, or null if this hook does not provide the manifest. |
long |
getManifestTimeStamp()
|
byte |
getManifestType()
|
java.lang.String |
getPluginClass()
|
java.lang.String |
getRegisteredBuddyList()
|
int |
getStorageVersion()
Returns the storage version of this storage hook. |
boolean |
hasPackageInfo()
|
void |
initialize(java.util.Dictionary manifest)
Initializes this storage hook with the content of the specified bundle manifest. |
boolean |
isAutoStartable()
Checks whether this bundle is auto started for all resource/class loads or only for a subset of resource/classloads |
boolean |
isLazyStart()
|
StorageHook |
load(BaseData target,
java.io.DataInputStream in)
Creates a new storage hook and loads the data from the specified input stream into the storage hook. |
boolean |
matchDNChain(java.lang.String pattern)
Gets called by a base data during BundleData.matchDNChain(String) . |
void |
save(java.io.DataOutputStream out)
Saves the data from this storage hook into the specified output stream. |
void |
validate()
Validates the data in this storage hook, if the data is invalid then an illegal state exception is thrown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY
public static final int HASHCODE
Constructor Detail |
---|
public EclipseStorageHook()
Method Detail |
---|
public int getStorageVersion()
StorageHook
getStorageVersion
in interface StorageHook
public StorageHook create(BaseData bundledata) throws BundleException
StorageHook
StorageHook.initialize(Dictionary)
method called to initialize the storage hook.
create
in interface StorageHook
bundledata
- a base data the created storage hook will be associated with
BundleException
- if any error occurspublic void initialize(java.util.Dictionary manifest) throws BundleException
StorageHook
initialize
in interface StorageHook
manifest
- the bundle manifest to load into this storage hook
BundleException
- if any error occursStorageHook.create(BaseData)
,
StorageHook.copy(StorageHook)
public StorageHook load(BaseData target, java.io.DataInputStream in) throws java.io.IOException
StorageHook
It is important that this method and the StorageHook.save(DataOutputStream)
method
stay in sync. This method must be able to successfully read the data saved by the
StorageHook.save(DataOutputStream)
method.
load
in interface StorageHook
target
- a base data the loaded storage hook will be associated within
- an input stream used to load the storage hook's data from.
java.io.IOException
- if any error occursStorageHook.save(DataOutputStream)
public void save(java.io.DataOutputStream out) throws java.io.IOException
StorageHook
It is important that this method and the StorageHook.load(BaseData, DataInputStream)
method stay in sync. This method must be able to save data which the
StorageHook.load(BaseData, DataInputStream)
method can ready successfully.
save
in interface StorageHook
out
- an output stream used to save the storage hook's data from.
java.io.IOException
- if any error occursStorageHook.load(BaseData, DataInputStream)
public int getKeyHashCode()
KeyedElement
getKeyHashCode
in interface KeyedElement
public boolean compare(KeyedElement other)
KeyedElement
compare
in interface KeyedElement
other
- the element to compare with
public java.lang.Object getKey()
KeyedElement
getKey
in interface KeyedElement
public boolean isLazyStart()
public java.lang.String[] getLazyStartExcludes()
public java.lang.String[] getLazyStartIncludes()
public java.lang.String getBuddyList()
public boolean hasPackageInfo()
public java.lang.String getPluginClass()
public java.lang.String getRegisteredBuddyList()
public long getManifestTimeStamp()
public byte getManifestType()
public boolean isAutoStartable()
public void addHooks(HookRegistry hookRegistry)
HookConfigurator
addHooks
in interface HookConfigurator
hookRegistry
- the hook registry used to add hookspublic java.util.Dictionary getGeneratedManifest() throws BundleException
BundleException
public BaseData getBaseData()
public void copy(StorageHook storageHook)
StorageHook
StorageHook.initialize(Dictionary)
method.
copy
in interface StorageHook
storageHook
- the original storage hook to copy data out of.StorageHook.create(BaseData)
,
StorageHook.initialize(Dictionary)
public void validate() throws java.lang.IllegalArgumentException
StorageHook
validate
in interface StorageHook
java.lang.IllegalArgumentException
- if the data is invalidpublic FrameworkAdaptor getAdaptor()
public java.util.Dictionary getManifest(boolean firstLoad) throws BundleException
StorageHook
getManifest
in interface StorageHook
firstLoad
- true if this is the very first time this manifest is being loaded.
BundleException
public boolean forgetStatusChange(int status)
StorageHook
BundleData.setStatus(int)
.
A base data will call this method for each configured storage hook it
is associated with until one storage hook returns true. If all configured storage
hooks return false then the BaseData will be marked dirty and will cause the
status to be persistently saved.
forgetStatusChange
in interface StorageHook
status
- the new status of the base data
public boolean forgetStartLevelChange(int startlevel)
StorageHook
BundleData.setStartLevel(int)
.
A base data will call this method for each configured storage hook it
is associated with until one storage hook returns true. If all configured storage
hooks return false then the BaseData will be marked dirty and will cause the
start level to be persistently saved.
forgetStartLevelChange
in interface StorageHook
startlevel
- the new startlevel of the base data
public boolean matchDNChain(java.lang.String pattern)
StorageHook
BundleData.matchDNChain(String)
.
A base data will call this method for each configured storage hook it
is associated with until one storage hook returns true. If all configured storage
hooks return false value then the BaseAdaptor will return false.
matchDNChain
in interface StorageHook
pattern
- the pattern of distinguished name (DN) chains to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |