Class CrispHstServices
java.lang.Object
org.onehippo.cms7.crisp.hst.module.CrispHstServices
Convenient utility to allow easy access to the singleton
ResourceServiceBroker
in an application.
Note:
Each set of the static members of org.hippoecm.hst.site.HstServices
in multiple wars has its own
ComponentManager
. So, the ComponentManager
of each application can be used to try to find the
local CRISP ResourceServiceBroker
component. If not found from the local ComponentManager
, then
it can try to find it from HippoServiceRegistry
as fallback.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceServiceBroker
Deprecated.static ResourceServiceBroker
getDefaultResourceServiceBroker
(ComponentManager componentManager) Returns the singletonResourceServiceBroker
instance from eithercomponentManager
orHippoServiceRegistry
.static <T> T
getModuleComponent
(String name) Deprecated.UsegetModuleComponent(ComponentManager, String)
instead.static <T> T
getModuleComponent
(ComponentManager componentManager, String componentName) Returns a component registered in CRISP HST Addon Module'sComponentManager
.
-
Field Details
-
MODULE_NAME
CRISP HST Addon Module name.- See Also:
-
-
Method Details
-
getModuleComponent
Returns a component registered in CRISP HST Addon Module'sComponentManager
.- Parameters:
componentManager
- theComponentManager
that initialized the CRISP HST Addon Module, normally gotten fromHstServices.getComponentManager()
componentName
- component name- Returns:
- a component registered in CRISP HST Addon Module's
ComponentManager
-
getModuleComponent
Deprecated.UsegetModuleComponent(ComponentManager, String)
instead.Returns a component registered in CRISP HST Addon Module'sComponentManager
.- Parameters:
name
- a component bean name registered in CRISP HST Addon Module'sComponentManager
- Returns:
- a component registered in CRISP HST Addon Module's
ComponentManager
-
getDefaultResourceServiceBroker
public static ResourceServiceBroker getDefaultResourceServiceBroker(ComponentManager componentManager) Returns the singletonResourceServiceBroker
instance from eithercomponentManager
orHippoServiceRegistry
.- Parameters:
componentManager
-ComponentManager
instance, normally gotten fromHstServices.getComponentManager()
- Returns:
- the singleton
ResourceServiceBroker
instance
-
getDefaultResourceServiceBroker
Deprecated.UsegetDefaultResourceServiceBroker(ComponentManager)
instead.Returns the singletonResourceServiceBroker
instance.- Returns:
- the singleton
ResourceServiceBroker
instance
-
getDefaultResourceServiceBroker(ComponentManager)
instead.