|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.baseadaptor.HookRegistry
public final class HookRegistry
The hook registry is used to store all the hooks which are configured by the hook configurators.
HookConfigurator
Field Summary | |
---|---|
static java.lang.String |
HOOK_CONFIGURATORS
The hook configurators property key ("hookconfigurators.properties") used in a hook configurators properties file to specify a comma separated list of fully qualified hook configurator classes. |
static java.lang.String |
HOOK_CONFIGURATORS_FILE
The hook configurators properties file ("hookconfigurators.properties") A framework extension may supply a hook configurators properties file to specify a list of hook configurators. |
static java.lang.String |
PROP_HOOK_CONFIGURATORS
A system property ("osgi.hook.configurators") used to specify the list of hook configurators. |
static java.lang.String |
PROP_HOOK_CONFIGURATORS_EXCLUDE
A system property ("osgi.hook.configurators.exclude") used to exclude any hook configurators. |
static java.lang.String |
PROP_HOOK_CONFIGURATORS_INCLUDE
A system property ("osgi.hook.configurators.include") used to add additional hook configurators. |
Constructor Summary | |
---|---|
HookRegistry(BaseAdaptor adaptor)
|
Method Summary | |
---|---|
void |
addAdaptorHook(AdaptorHook adaptorHook)
Adds a adaptor hook to this hook registry. |
void |
addBundleFileFactoryHook(BundleFileFactoryHook factory)
Adds a bundle file factory to this hook registry. |
void |
addBundleFileWrapperFactoryHook(BundleFileWrapperFactoryHook factory)
Adds a bundle file wrapper factory for this hook registry |
void |
addClassLoadingHook(ClassLoadingHook classLoadingHook)
Adds a class loading hook to this hook registry. |
void |
addClassLoadingStatsHook(ClassLoadingStatsHook classLoadingStatsHook)
Adds a class loading stats hook to this hook registry. |
void |
addStorageHook(StorageHook storageHook)
Adds a storage hook to this hook registry. |
void |
addWatcher(BundleWatcher watcher)
Adds a bundle watcher to this hook registry. |
BaseAdaptor |
getAdaptor()
Returns the base adaptor associated with this hook registry. |
AdaptorHook[] |
getAdaptorHooks()
Returns the list of configured adaptor hooks. |
BundleFileFactoryHook[] |
getBundleFileFactoryHooks()
Returns the list of configured bundle file factories. |
BundleFileWrapperFactoryHook[] |
getBundleFileWrapperFactoryHooks()
Returns the configured bundle file wrapper factories |
ClassLoadingHook[] |
getClassLoadingHooks()
Returns the list of configured class loading hooks. |
ClassLoadingStatsHook[] |
getClassLoadingStatsHooks()
Returns the list of configured class loading stats hooks. |
StorageHook[] |
getStorageHooks()
Returns the list of configured storage hooks. |
BundleWatcher[] |
getWatchers()
Returns the list of configured bundle watchers. |
org.eclipse.osgi.framework.log.FrameworkLogEntry[] |
initialize()
Initializes the hook configurators. |
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 HOOK_CONFIGURATORS_FILE
A framework extension may supply a hook configurators properties file to specify a list of hook configurators.
HOOK_CONFIGURATORS
,
Constant Field Valuespublic static final java.lang.String HOOK_CONFIGURATORS
public static final java.lang.String PROP_HOOK_CONFIGURATORS_INCLUDE
public static final java.lang.String PROP_HOOK_CONFIGURATORS_EXCLUDE
public static final java.lang.String PROP_HOOK_CONFIGURATORS
Constructor Detail |
---|
public HookRegistry(BaseAdaptor adaptor)
Method Detail |
---|
public org.eclipse.osgi.framework.log.FrameworkLogEntry[] initialize()
1. Get a list of hook configurators from all hook configurators properties files on the classpath, add this list to the overall list of hook configurators, remove duplicates.
2. Get a list of hook configurators from the ("osgi.hook.configurators.include") system property and add this list to the overall list of hook configurators, remove duplicates.
3. Get a list of hook configurators from the ("osgi.hook.configurators.exclude") system property and remove this list from the overall list of hook configurators.
4. Load each hook configurator class, create a new instance, then call the HookConfigurator.addHooks(HookRegistry)
method
5. Set this HookRegistry object to read only to prevent any other hooks from being added.
public AdaptorHook[] getAdaptorHooks()
public BundleWatcher[] getWatchers()
public ClassLoadingHook[] getClassLoadingHooks()
public ClassLoadingStatsHook[] getClassLoadingStatsHooks()
public StorageHook[] getStorageHooks()
public BundleFileFactoryHook[] getBundleFileFactoryHooks()
public BundleFileWrapperFactoryHook[] getBundleFileWrapperFactoryHooks()
public void addAdaptorHook(AdaptorHook adaptorHook)
adaptorHook
- an adaptor hook object.public void addWatcher(BundleWatcher watcher)
watcher
- a bundle watcher object.public void addClassLoadingHook(ClassLoadingHook classLoadingHook)
classLoadingHook
- a class loading hook object.public void addClassLoadingStatsHook(ClassLoadingStatsHook classLoadingStatsHook)
classLoadingStatsHook
- a class loading hook object.public void addStorageHook(StorageHook storageHook)
storageHook
- a storage hook object.public void addBundleFileFactoryHook(BundleFileFactoryHook factory)
factory
- a bundle file factory object.public void addBundleFileWrapperFactoryHook(BundleFileWrapperFactoryHook factory)
factory
- a bundle file wrapper factory object.public BaseAdaptor getAdaptor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |