Package org.apache.felix.framework
Class HookRegistry
- java.lang.Object
-
- org.apache.felix.framework.HookRegistry
-
public class HookRegistry extends java.lang.ObjectThis registry holds all services implementing one of the hook services
-
-
Constructor Summary
Constructors Constructor Description HookRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHooks(java.lang.String[] classNames, java.lang.Object svcObj, ServiceReference<?> ref)Check and add the service to the set of hooksvoidblackListHook(ServiceReference<?> sr)<S> java.util.Set<ServiceReference<S>>getHooks(java.lang.Class<S> hookClass)Return the sorted set of hooksbooleanisHookBlackListed(ServiceReference<?> sr)voidremoveHooks(ServiceReference<?> ref)Remove the service hooksvoidupdateHooks(ServiceReference<?> ref)Update the service ranking for a hook
-
-
-
Method Detail
-
addHooks
public void addHooks(java.lang.String[] classNames, java.lang.Object svcObj, ServiceReference<?> ref)Check and add the service to the set of hooks- Parameters:
classNames- The service namessvcObj- The service objectref- The service reference
-
updateHooks
public void updateHooks(ServiceReference<?> ref)
Update the service ranking for a hook- Parameters:
ref- The service reference
-
removeHooks
public void removeHooks(ServiceReference<?> ref)
Remove the service hooks- Parameters:
ref- The service reference
-
getHooks
public <S> java.util.Set<ServiceReference<S>> getHooks(java.lang.Class<S> hookClass)
Return the sorted set of hooks- Parameters:
hookClass- The hook class- Returns:
- The sorted set - the set might be empty
-
isHookBlackListed
public boolean isHookBlackListed(ServiceReference<?> sr)
-
blackListHook
public void blackListHook(ServiceReference<?> sr)
-
-