org.apache.sling.commons.logservice.internal
Class LogReaderServiceFactory

java.lang.Object
  extended by org.apache.sling.commons.logservice.internal.LogReaderServiceFactory
All Implemented Interfaces:
org.osgi.framework.ServiceFactory

public class LogReaderServiceFactory
extends java.lang.Object
implements org.osgi.framework.ServiceFactory

The LogReaderServiceFactory is the service factory for LogReader service instances supplied to bundles.

When a bundle which registers a LogListener object is stopped or otherwise releases the Log Reader Service, the Log Reader Service must remove all of the bundle's listeners.


Method Summary
 java.lang.Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
           
 void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public java.lang.Object getService(org.osgi.framework.Bundle bundle,
                                   org.osgi.framework.ServiceRegistration registration)
Specified by:
getService in interface org.osgi.framework.ServiceFactory

ungetService

public void ungetService(org.osgi.framework.Bundle bundle,
                         org.osgi.framework.ServiceRegistration registration,
                         java.lang.Object service)
Specified by:
ungetService in interface org.osgi.framework.ServiceFactory


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