/** * Sets the portlet session bean holder in a ThreadLocal object for the given * portlet session. If no bean holder exists in the session, a new one is created. * * @param req The portlet request * @return The render state bean holder */ public static void setBeanHolder(PortletRequest req, PortletStateScopedConfig config) { if (isTrace) { StringBuilder txt = new StringBuilder(80); txt.append("Setting render state bean holder."); txt.append(" ThreadId=").append(Thread.currentThread().getId()); txt.append(", config: ").append((config == null) ? "null" : config.getConfigAsString()); LOG.trace(txt.toString()); } PortletStateScopedBeanHolder holder = new PortletStateScopedBeanHolder(req, config); holders.set(holder); }
txt.append("PortletStateScopedBeanHolder configuration."); txt.append(" Annotated Beans: "); txt.append(getConfigAsString()); LOG.debug(txt.toString());
formatToErrorString(config.getConfigAsString().split("\n")); } else {