org.apache.sling.jcr.base.internal.loader
Class Loader

java.lang.Object
  extended by org.apache.sling.jcr.base.internal.loader.Loader
All Implemented Interfaces:
java.util.EventListener, org.apache.sling.jcr.api.NamespaceMapper, org.osgi.framework.BundleListener

public class Loader
extends java.lang.Object
implements org.apache.sling.jcr.api.NamespaceMapper, org.osgi.framework.BundleListener

The Loader TODO


Field Summary
static java.lang.String NAMESPACES_BUNDLE_HEADER
           
static java.lang.String NODETYPES_BUNDLE_HEADER
           
 
Constructor Summary
Loader(org.apache.sling.jcr.api.SlingRepository repository, org.osgi.framework.BundleContext bundleContext)
           
 
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)
           
 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
 

Field Detail

NODETYPES_BUNDLE_HEADER

public static final java.lang.String NODETYPES_BUNDLE_HEADER
See Also:
Constant Field Values

NAMESPACES_BUNDLE_HEADER

public static final java.lang.String NAMESPACES_BUNDLE_HEADER
See Also:
Constant Field Values
Constructor Detail

Loader

public Loader(org.apache.sling.jcr.api.SlingRepository repository,
              org.osgi.framework.BundleContext bundleContext)
Method Detail

dispose

public void dispose()

defineNamespacePrefixes

public void defineNamespacePrefixes(javax.jcr.Session session)
                             throws javax.jcr.RepositoryException
Specified by:
defineNamespacePrefixes in interface org.apache.sling.jcr.api.NamespaceMapper
Throws:
javax.jcr.RepositoryException

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-2012 The Apache Software Foundation. All Rights Reserved.