public Class getManagedBeanClass() { if (beanClassName == null) { return null; } if (beanClass == null) { beanClass = ClassUtils.simpleClassForName(beanClassName); } return beanClass; }
private boolean isUseFlashScopePurgeViewsInSession(ExternalContext externalContext) { if (_useFlashScopePurgeViewsInSession == null) { _useFlashScopePurgeViewsInSession = WebConfigParamUtils.getBooleanInitParameter( externalContext, USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION, false); } return _useFlashScopePurgeViewsInSession; }
/** * Gets the ClassLoader associated with the current thread. Includes a check for priviledges * against java2 security to ensure no security related exceptions are encountered. * * @since 3.0.6 * @return ClassLoader */ public static ClassLoader getContextClassLoader() { // call into the same method on ClassLoaderUtils. no need for duplicate code maintenance. return ClassLoaderUtils.getContextClassLoader(); }
public static Object newInstance(String type) throws FacesException { if (type == null) return null; return newInstance(simpleClassForName(type)); }
Styles(String rowStyles, String columnStyles) { _rowStyle = (rowStyles == null) ? ArrayUtils.EMPTY_STRING_ARRAY : StringUtils.trim( StringUtils.splitShortString(rowStyles, ',')); _columnStyle = (columnStyles == null) ? ArrayUtils.EMPTY_STRING_ARRAY : StringUtils.trim( StringUtils.splitShortString(columnStyles, ',')); }
public void putAll(Map map) { synchronized (_cacheL2) { mergeIfL2NotEmpty(); // sepatare merge to avoid increasing L2 size too much // (it cannot be reallocated, it is final) merge(map); } }
public static FacesMessage getMessage(String messageId, Object params[]) { Locale locale = getCurrentLocale(); return getMessage(locale, messageId, params); }
public static Object concat(Object arr1, Object arr2, Object arr3, Object arr4) { return concat(new Object[] {arr1, arr2, arr3, arr4}); }
private void mergeIfNeeded() { if (++_missCount >= _mergeThreshold) { merge(_cacheL2); } }
/** * find nesting form<br /> * need to be overrideable to deal with dummyForm stuff in tomahawk. */ protected FormInfo findNestingForm(UIComponent uiComponent, FacesContext facesContext) { return _ComponentUtils.findNestingForm(uiComponent, facesContext); }
/** * * @param context * @param messageId * @return generated FacesMessage */ public static FacesMessage getMessage(FacesContext context, String messageId) { return getMessage(context, messageId, ((Object []) (null))); }
public ObjectInputStream getObjectInputStream(InputStream inputStream) throws IOException { return new MyFacesObjectInputStream(inputStream); }
/** * Returns the ClassLoader to use when looking up resources under the top level package. By default, this is the * context class loader. * * @return the ClassLoader used to lookup resources */ protected ClassLoader getClassLoader() { return ClassUtils.getContextClassLoader(); }
public void write(int c) throws IOException { this.overflow(1); this.buff[this.size] = (char) c; this.size++; }
public static Object newInstance(String type) throws FacesException { if (type == null) return null; return newInstance(simpleClassForName(type)); }
Styles(String rowStyles, String columnStyles) { _rowStyle = (rowStyles == null) ? ArrayUtils.EMPTY_STRING_ARRAY : StringUtils.trim( StringUtils.splitShortString(rowStyles, ',')); _columnStyle = (columnStyles == null) ? ArrayUtils.EMPTY_STRING_ARRAY : StringUtils.trim( StringUtils.splitShortString(columnStyles, ',')); }
public Class<?> getManagedBeanClass() { if (beanClassName == null) { return null; } if (beanClass == null) { beanClass = ClassUtils.simpleClassForName(beanClassName); } return beanClass; }
public static Object concat(Object arr1, Object arr2, Object arr3, Object arr4, Object arr5) { return concat(new Object[] {arr1, arr2, arr3, arr4, arr5}); }
/** * Returns the ClassLoader to use when looking up resources under the top level package. By default, this is the * context class loader. * * @return the ClassLoader used to lookup resources */ protected ClassLoader getClassLoader() { return ClassUtils.getContextClassLoader(); }
private ClassLoader getClassLoader() { return ClassUtils.getContextClassLoader(); }