public class CrispHstServices extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
MODULE_NAME
CRISP HST Addon Module name.
|
Modifier and Type | Method and Description |
---|---|
static ResourceServiceBroker |
getDefaultResourceServiceBroker()
Deprecated.
Use
getDefaultResourceServiceBroker(ComponentManager) instead. |
static ResourceServiceBroker |
getDefaultResourceServiceBroker(org.hippoecm.hst.core.container.ComponentManager componentManager)
Returns the singleton
ResourceServiceBroker instance from either componentManager or
HippoServiceRegistry . |
static <T> T |
getModuleComponent(org.hippoecm.hst.core.container.ComponentManager componentManager,
String componentName)
Returns a component registered in CRISP HST Addon Module's
ComponentManager . |
static <T> T |
getModuleComponent(String name)
Deprecated.
Use
getModuleComponent(ComponentManager, String) instead. |
public static final String MODULE_NAME
public static <T> T getModuleComponent(org.hippoecm.hst.core.container.ComponentManager componentManager, String componentName)
ComponentManager
.componentManager
- the ComponentManager
that initialized the CRISP HST Addon Module, normally
gotten from HstServices.getComponentManager()
componentName
- component nameComponentManager
@Deprecated public static <T> T getModuleComponent(String name)
getModuleComponent(ComponentManager, String)
instead.ComponentManager
.name
- a component bean name registered in CRISP HST Addon Module's ComponentManager
ComponentManager
public static ResourceServiceBroker getDefaultResourceServiceBroker(org.hippoecm.hst.core.container.ComponentManager componentManager)
ResourceServiceBroker
instance from either componentManager
or
HippoServiceRegistry
.componentManager
- ComponentManager
instance, normally gotten from HstServices.getComponentManager()
ResourceServiceBroker
instance@Deprecated public static ResourceServiceBroker getDefaultResourceServiceBroker()
getDefaultResourceServiceBroker(ComponentManager)
instead.ResourceServiceBroker
instance.ResourceServiceBroker
instanceCopyright © 2017–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.