org.apache.sling.jcr.base.internal.loader
Class Loader
java.lang.Object
org.apache.sling.jcr.base.internal.loader.Loader
- All Implemented Interfaces:
- EventListener, NamespaceMapper, org.osgi.framework.BundleListener
public class Loader
- extends Object
- implements NamespaceMapper, org.osgi.framework.BundleListener
The Loader
TODO
Method Summary |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Loads and unloads any components provided by the bundle whose state
changed. |
void |
defineNamespacePrefixes(javax.jcr.Session session)
This method is invoked whenever a new session is created. |
void |
dispose()
|
protected void |
unregisterNamespaces(org.osgi.framework.Bundle bundle)
Unregister namespaces defined in the bundle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NODETYPES_BUNDLE_HEADER
public static final String NODETYPES_BUNDLE_HEADER
- See Also:
- Constant Field Values
NAMESPACES_BUNDLE_HEADER
public static final String NAMESPACES_BUNDLE_HEADER
- See Also:
- Constant Field Values
Loader
public Loader(AbstractSlingRepository repository,
org.osgi.framework.BundleContext bundleContext)
dispose
public void dispose()
defineNamespacePrefixes
public void defineNamespacePrefixes(javax.jcr.Session session)
throws javax.jcr.RepositoryException
- Description copied from interface:
NamespaceMapper
- This method is invoked whenever a new session is created.
It allows the service to add own namespace prefixes.
- Specified by:
defineNamespacePrefixes
in interface NamespaceMapper
- Parameters:
session
- The new session
- Throws:
javax.jcr.RepositoryException
- If anything goes wrong
bundleChanged
public final void bundleChanged(org.osgi.framework.BundleEvent event)
- Loads and unloads any components provided by the bundle whose state
changed. If the bundle has been started, the components are loaded. If
the bundle is about to stop, the components are unloaded.
- Specified by:
bundleChanged
in interface org.osgi.framework.BundleListener
- Parameters:
event
- The BundleEvent
representing the bundle state
change.
unregisterNamespaces
protected void unregisterNamespaces(org.osgi.framework.Bundle bundle)
- Unregister namespaces defined in the bundle.
- Parameters:
bundle
- The bundle.
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.