org.apache.felix.eventadmin.impl.handler
Class CleanBlackList
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CleanBlackList
public CleanBlackList()
add
public void add(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(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 © 2011 Apache Software Foundation. All Rights Reserved.