Class PortletSupport


  • public final class PortletSupport
    extends Object
    Simple portlet support.
    Author:
    Marko Strukelj, Ales Justin
    • 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 BeanManager getBeanManager​(Object ctx)
        Get bean manager from portlet context.
        Parameters:
        ctx - the portlet context
        Returns:
        bean manager if found