Class HippoWebappContextRegistry
java.lang.Object
org.onehippo.cms7.services.WhiteboardServiceRegistry<HippoWebappContext>
org.onehippo.cms7.services.context.HippoWebappContextRegistry
-
Method Summary
Modifier and TypeMethodDescriptionstatic HippoWebappContextRegistry
get()
getContext
(String contextPath) boolean
void
register
(HippoWebappContext serviceObject) Register a service object of type <T>boolean
unregister
(HippoWebappContext serviceObject) Unregister a previously registered service objectMethods inherited from class org.onehippo.cms7.services.WhiteboardServiceRegistry
addTracker, getEntries, getEntriesList, removeTracker, size
-
Method Details
-
get
-
register
Description copied from class:WhiteboardServiceRegistry
Register a service object of type <T>- Overrides:
register
in classWhiteboardServiceRegistry<HippoWebappContext>
- Parameters:
serviceObject
- the service object- Throws:
HippoServiceException
- when the service object was already registered
-
unregister
Description copied from class:WhiteboardServiceRegistry
Unregister a previously registered service object- Overrides:
unregister
in classWhiteboardServiceRegistry<HippoWebappContext>
- Parameters:
serviceObject
- the service object- Returns:
- true if the service object was registered before and now removed, false otherwise
-
getContext
-
hasAtLeastOne
- Parameters:
type
- the type of webapp to check- Returns:
- true if and only if there is one or more HippoWebappContext instances registered with the given type
-