Class HippoWebappContextRegistry
- java.lang.Object
-
- org.onehippo.cms7.services.WhiteboardServiceRegistry<HippoWebappContext>
-
- org.onehippo.cms7.services.context.HippoWebappContextRegistry
-
public class HippoWebappContextRegistry extends WhiteboardServiceRegistry<HippoWebappContext>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HippoWebappContextRegistry
get()
HippoWebappContext
getContext(String contextPath)
boolean
hasAtLeastOne(HippoWebappContext.Type type)
void
register(HippoWebappContext serviceObject)
Register a service object of type <T>boolean
unregister(HippoWebappContext serviceObject)
Unregister a previously registered service object-
Methods inherited from class org.onehippo.cms7.services.WhiteboardServiceRegistry
addTracker, getEntries, getEntriesList, removeTracker, size
-
-
-
-
Method Detail
-
get
public static HippoWebappContextRegistry get()
-
register
public void register(HippoWebappContext serviceObject) throws HippoServiceException
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
public boolean unregister(HippoWebappContext serviceObject)
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
public HippoWebappContext getContext(String contextPath)
-
hasAtLeastOne
public boolean hasAtLeastOne(HippoWebappContext.Type type)
- 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
-
-