Class PortletSupport
- java.lang.Object
-
- org.jboss.weld.environment.servlet.portlet.PortletSupport
-
public final class PortletSupport extends Object
Simple portlet support.- Author:
- Marko Strukelj, Ales Justin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.enterprise.inject.spi.BeanManagergetBeanManager(Object ctx)Get bean manager from portlet context.static booleanisPortletContext(Object ctx)Is the ctx object instance of portlet context.static booleanisPortletEnvSupported()Is portlet env supported.
-
-
-
Method Detail
-
isPortletEnvSupported
public static boolean isPortletEnvSupported()
Is portlet env supported.- Returns:
- true if portlet env is supported, false otherwise
-
isPortletContext
public static boolean isPortletContext(Object ctx)
Is the ctx object instance of portlet context.- Parameters:
ctx- the current context- Returns:
- true is portlet context, false otherwise
-
getBeanManager
public static javax.enterprise.inject.spi.BeanManager getBeanManager(Object ctx)
Get bean manager from portlet context.- Parameters:
ctx- the portlet context- Returns:
- bean manager if found
-
-