org.apache.felix.eventadmin.impl.handler
Class CleanBlackList

java.lang.Object
  extended by org.apache.felix.eventadmin.impl.handler.CleanBlackList
All Implemented Interfaces:
BlackList

public class CleanBlackList
extends Object
implements BlackList

This class implements a BlackList that removes references to unregistered services automatically.

Author:
Felix Project Team
See Also:
BlackList

Constructor Summary
CleanBlackList()
           
 
Method Summary
 void add(org.osgi.framework.ServiceReference ref)
          Add a service to this blacklist.
 boolean contains(org.osgi.framework.ServiceReference ref)
          Lookup whether a given service is blacklisted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanBlackList

public CleanBlackList()
Method Detail

add

public void add(org.osgi.framework.ServiceReference ref)
Add a service to this blacklist.

Specified by:
add in interface BlackList
Parameters:
ref - The reference of the service that is blacklisted
See Also:
BlackList.add(org.osgi.framework.ServiceReference)

contains

public boolean contains(org.osgi.framework.ServiceReference ref)
Lookup whether a given service is blacklisted.

Specified by:
contains in interface BlackList
Parameters:
ref - The reference of the service
Returns:
true in case that the service reference has been blacklisted, false otherwise.
See Also:
BlackList.contains(org.osgi.framework.ServiceReference)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.