public class HookRegistry extends Object
Constructor and Description |
---|
HookRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addHooks(String[] classNames,
Object svcObj,
ServiceReference<?> ref)
Check and add the service to the set of hooks
|
void |
blackListHook(ServiceReference<?> sr) |
<S> Set<ServiceReference<S>> |
getHooks(Class<S> hookClass)
Return the sorted set of hooks
|
boolean |
isHookBlackListed(ServiceReference<?> sr) |
void |
removeHooks(ServiceReference<?> ref)
Remove the service hooks
|
void |
updateHooks(ServiceReference<?> ref)
Update the service ranking for a hook
|
public void addHooks(String[] classNames, Object svcObj, ServiceReference<?> ref)
classNames
- The service namessvcObj
- The service objectref
- The service referencepublic void updateHooks(ServiceReference<?> ref)
ref
- The service referencepublic void removeHooks(ServiceReference<?> ref)
ref
- The service referencepublic <S> Set<ServiceReference<S>> getHooks(Class<S> hookClass)
hookClass
- The hook classpublic boolean isHookBlackListed(ServiceReference<?> sr)
public void blackListHook(ServiceReference<?> sr)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.