org.apache.felix.eventadmin.impl.handler
Interface BlackList

All Known Implementing Classes:
CleanBlackList

public interface BlackList

This interface represents a simple set that allows to add service references and lookup whether a given reference is in the list. Note that implementations of this interface may do additional service reference life-cycle related clean-up actions like removing references that point to unregistered services.

Author:
Felix Project Team

Method Summary
 void add(ServiceReference ref)
          Add a service to this blacklist.
 boolean contains(ServiceReference ref)
          Lookup whether a given service is blacklisted.
 

Method Detail

add

void add(ServiceReference ref)
Add a service to this blacklist.

Parameters:
ref - The reference of the service that is blacklisted

contains

boolean contains(ServiceReference ref)
Lookup whether a given service is blacklisted.

Parameters:
ref - The reference of the service
Returns:
true in case that the service reference has been blacklisted, false otherwise.


Copyright © 2011 Apache Software Foundation. All Rights Reserved.