org.apache.sling.event.impl
Class EnvironmentComponent

java.lang.Object
  extended by org.apache.sling.event.impl.EnvironmentComponent

@Service(value=EnvironmentComponent.class)
public class EnvironmentComponent
extends Object

Environment component. This component provides "global settings" to all services, like the application id and the thread pool.

Since:
3.0

Constructor Summary
EnvironmentComponent()
           
 
Method Summary
protected  void activate()
          Activate this component.
protected  void bindThreadPool(EventingThreadPool etp)
           
 javax.jcr.Session createAdminSession()
          Create a new admin session.
protected  void deactivate()
          Dectivate this component.
 ClassLoader getDynamicClassLoader()
          Return the dynamic classloader for loading events from the repository.
 org.osgi.service.event.EventAdmin getEventAdmin()
          Return the event admin.
protected  void unbindThreadPool(EventingThreadPool etp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentComponent

public EnvironmentComponent()
Method Detail

activate

@Activate
protected void activate()
Activate this component.


deactivate

@Deactivate
protected void deactivate()
Dectivate this component.


getDynamicClassLoader

public ClassLoader getDynamicClassLoader()
Return the dynamic classloader for loading events from the repository.


createAdminSession

public javax.jcr.Session createAdminSession()
                                     throws javax.jcr.RepositoryException
Create a new admin session.

Returns:
A new admin session.
Throws:
javax.jcr.RepositoryException

getEventAdmin

public org.osgi.service.event.EventAdmin getEventAdmin()
Return the event admin.


bindThreadPool

protected void bindThreadPool(EventingThreadPool etp)

unbindThreadPool

protected void unbindThreadPool(EventingThreadPool etp)


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