Interface ContentBeansTool
This interface is supposed to be provided to external application frameworks and codes.
They can normally access this component by invoking HttpServletRequest#getAttribute(ContentBeansTool.class.getName());
.
-
Method Summary
Modifier and TypeMethodDescriptioncreateObjectBeanManager
(Session session) Creates a new ObjectBeanManager instance using theObjectConverter
fromgetObjectConverter()
.createQueryManager
(Session session) Creates a new HstQueryManager instance using theObjectConverter
fromgetObjectConverter()
.
-
Method Details
-
getObjectConverter
ObjectConverter getObjectConverter()- Returns:
ObjectConverter
which is shareed across all threads
-
createObjectBeanManager
Creates a new ObjectBeanManager instance using the
ObjectConverter
fromgetObjectConverter()
. If you have aHstRequestContext
then useHstRequestContext.getObjectBeanManager(javax.jcr.Session)
orHstRequestContext.getObjectBeanManager()
instead : This will include some caching of beans automatically- Returns:
- a new
ObjectBeanManager
instance for theSession
session
- Throws:
IllegalStateException
- if the application is unable to provide a ObjectBeanManager- See Also:
-
createQueryManager
Creates a new HstQueryManager instance using the
ObjectConverter
fromgetObjectConverter()
. If you have aHstRequestContext
then useHstRequestContext.getQueryManager(javax.jcr.Session)
orHstRequestContext.getQueryManager()
instead : This will include some caching of beans automatically- Parameters:
session
-- Returns:
- the
HstQueryManager
forsession
- Throws:
IllegalStateException
- if the application is unable to provide a HstQueryManager- See Also:
-