Interface ContentBeansTool
-
public interface ContentBeansTool
ContentBeansToolThis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectBeanManager
createObjectBeanManager(Session session)
Creates a new ObjectBeanManager instance using theObjectConverter
fromgetObjectConverter()
.HstQueryManager
createQueryManager(Session session)
Creates a new HstQueryManager instance using theObjectConverter
fromgetObjectConverter()
.ObjectConverter
getObjectConverter()
-
-
-
Method Detail
-
getObjectConverter
ObjectConverter getObjectConverter()
- Returns:
ObjectConverter
which is shareed across all threads
-
createObjectBeanManager
ObjectBeanManager createObjectBeanManager(Session session) throws IllegalStateException
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:
to re-use a cached one for the current request
-
createQueryManager
HstQueryManager createQueryManager(Session session) throws IllegalStateException
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:
to re-use a cached one for the current request
-
-