@Override public Object run() { for (ClassLoaderHook hook : hooks) { hook.classLoaderCreated(cl); } return null; }
/** * Adds a storage hook to this hook registry. * @param storageHookFactory a storage hook object. */ public void addStorageHookFactory(StorageHookFactory<?, ?, ?> storageHookFactory) { add(storageHookFactory, storageHookFactories); }
/** * Returns true if the persisted version is compatible with the * current version of this storage hook. The default implementation * returns true if the specified version is identical to the current * version. Implementations must override this method if they * want to support other (older) versions for migration purposes. * @param version the persisted version * @return true if the persisted version is compatible with * the current version. */ public boolean isCompatibleWith(int version) { return getStorageVersion() == version; }
/** * Adds a bundle file wrapper factory for this hook registry * @param factory a bundle file wrapper factory object. */ public void addBundleFileWrapperFactoryHook(BundleFileWrapperFactoryHook factory) { add(factory, bundleFileWrapperFactoryHooks); }
/** * Returns true if the persisted version is compatible with the * current version of this storage hook. The default implementation * returns true if the specified version is identical to the current * version. Implementations must override this method if they * want to support other (older) versions for migration purposes. * @param version the persisted version * @return true if the persisted version is compatible with * the current version. */ public boolean isCompatibleWith(int version) { return getStorageVersion() == version; }
/** * Adds a storage hook to this hook registry. * @param storageHookFactory a storage hook object. */ public void addStorageHookFactory(StorageHookFactory<?, ?, ?> storageHookFactory) { add(storageHookFactory, storageHookFactories); }
/** * Adds a class loader hook to this hook registry. * @param classLoaderHook a class loading hook object. */ public void addClassLoaderHook(ClassLoaderHook classLoaderHook) { add(classLoaderHook, classLoaderHooks); }
/** * Adds an activator hook factory. The activators created by this factory will be started and stopped * when the system bundle is started and stopped. * @param activatorHookFactory the activator hook factory. */ public void addActivatorHookFactory(ActivatorHookFactory activatorHookFactory) { add(activatorHookFactory, activatorHookFactories); }
/** * Adds a class loader hook to this hook registry. * @param classLoaderHook a class loading hook object. */ public void addClassLoaderHook(ClassLoaderHook classLoaderHook) { add(classLoaderHook, classLoaderHooks); }
/** * Adds a storage hook to this hook registry. * @param storageHookFactory a storage hook object. */ public void addStorageHookFactory(StorageHookFactory<?, ?, ?> storageHookFactory) { add(storageHookFactory, storageHookFactories); }
/** * Adds a bundle file wrapper factory for this hook registry * @param factory a bundle file wrapper factory object. */ public void addBundleFileWrapperFactoryHook(BundleFileWrapperFactoryHook factory) { add(factory, bundleFileWrapperFactoryHooks); }
/** * Adds a bundle file wrapper factory for this hook registry * @param factory a bundle file wrapper factory object. */ public void addBundleFileWrapperFactoryHook(BundleFileWrapperFactoryHook factory) { add(factory, bundleFileWrapperFactoryHooks); }
/** * Adds an activator hook factory. The activators created by this factory will be started and stopped * when the system bundle is started and stopped. * @param activatorHookFactory the activator hook factory. */ public void addActivatorHookFactory(ActivatorHookFactory activatorHookFactory) { add(activatorHookFactory, activatorHookFactories); }
/** * Adds a bundle file wrapper factory for this hook registry * @param factory a bundle file wrapper factory object. */ public void addBundleFileWrapperFactoryHook(BundleFileWrapperFactoryHook factory) { add(factory, bundleFileWrapperFactoryHooks); }
/** * Adds an activator hook factory. The activators created by this factory will be started and stopped * when the system bundle is started and stopped. * @param activatorHookFactory the activator hook factory. */ public void addActivatorHookFactory(ActivatorHookFactory activatorHookFactory) { add(activatorHookFactory, activatorHookFactories); }
/** * Adds a class loader hook to this hook registry. * @param classLoaderHook a class loading hook object. */ public void addClassLoaderHook(ClassLoaderHook classLoaderHook) { add(classLoaderHook, classLoaderHooks); }
/** * Adds an activator hook factory. The activators created by this factory will be started and stopped * when the system bundle is started and stopped. * @param activatorHookFactory the activator hook factory. */ public void addActivatorHookFactory(ActivatorHookFactory activatorHookFactory) { add(activatorHookFactory, activatorHookFactories); }
/** * Adds a storage hook to this hook registry. * @param storageHookFactory a storage hook object. */ public void addStorageHookFactory(StorageHookFactory<?, ?, ?> storageHookFactory) { add(storageHookFactory, storageHookFactories); }
/** * Adds an activator hook factory. The activators created by this factory will be started and stopped * when the system bundle is started and stopped. * @param activatorHookFactory the activator hook factory. */ public void addActivatorHookFactory(ActivatorHookFactory activatorHookFactory) { add(activatorHookFactory, activatorHookFactories); }
/** * Adds a storage hook to this hook registry. * @param storageHookFactory a storage hook object. */ public void addStorageHookFactory(StorageHookFactory<?, ?, ?> storageHookFactory) { add(storageHookFactory, storageHookFactories); }