org.apache.sling.jcr.ocm.impl
Class ObjectContentManagerFactoryImpl

java.lang.Object
  extended by org.apache.sling.jcr.ocm.impl.ObjectContentManagerFactoryImpl
All Implemented Interfaces:
EventListener, ObjectContentManagerFactory, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

public class ObjectContentManagerFactoryImpl
extends Object
implements ObjectContentManagerFactory, org.osgi.framework.SynchronousBundleListener

The ObjectContentManagerFactory TODO


Constructor Summary
ObjectContentManagerFactoryImpl()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext componentContext)
          Activates this component, called by SCR before registering as a service
 void bundleChanged(org.osgi.framework.BundleEvent event)
          Loads and unloads any components provided by the bundle whose state changed.
protected  void deactivate(org.osgi.service.component.ComponentContext componentContext)
          Deativates this component, called by SCR to take out of service
 void fireEvent(org.osgi.framework.Bundle sourceBundle, String eventName)
          Fires an OSGi event through the EventAdmin service.
 org.apache.jackrabbit.ocm.manager.ObjectContentManager getObjectContentManager(javax.jcr.Session session)
          Return a new object content manager for the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectContentManagerFactoryImpl

public ObjectContentManagerFactoryImpl()
Method Detail

getObjectContentManager

public org.apache.jackrabbit.ocm.manager.ObjectContentManager getObjectContentManager(javax.jcr.Session session)
Description copied from interface: ObjectContentManagerFactory
Return a new object content manager for the session.

Specified by:
getObjectContentManager in interface ObjectContentManagerFactory
Parameters:
session - The jcr session.
Returns:
A new object content manager.
See Also:
ObjectContentManagerFactory.getObjectContentManager(javax.jcr.Session)

bundleChanged

public 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.

fireEvent

public void fireEvent(org.osgi.framework.Bundle sourceBundle,
                      String eventName)
Fires an OSGi event through the EventAdmin service.

Parameters:
sourceBundle - The Bundle from which the event originates. This may be null if there is no originating bundle.
eventName - The name of the event
Throws:
NullPointerException - if eventName or props is null.

activate

protected void activate(org.osgi.service.component.ComponentContext componentContext)
Activates this component, called by SCR before registering as a service


deactivate

protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
Deativates this component, called by SCR to take out of service



Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.