private void _initializeBuffer(ExternalContext context) { _bufferSize = WebConfigParamUtils.getIntegerInitParameter(context, PARAMS_BUFFER_SIZE, -1); }
private Integer getNumberOfSequentialViewsInSession(ExternalContext externalContext) { if (!_numberOfSequentialViewsInSessionSet) { _numberOfSequentialViewsInSession = WebConfigParamUtils.getIntegerInitParameter( externalContext, NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION_PARAM); _numberOfSequentialViewsInSessionSet = true; } return _numberOfSequentialViewsInSession; } }
private void _initializeBuffer(ExternalContext context) { _bufferSize = WebConfigParamUtils.getIntegerInitParameter(context, PARAMS_BUFFER_SIZE, -1); }
/** * Gets the int init parameter value from the specified context. If the parameter was not specified, the default * value is used instead. * * @param context * the application's external context * @param name * the init parameter's name * @param deprecatedName * the init parameter's deprecated name. * @param defaultValue * the default value to return in case the parameter was not set * * @return the init parameter value as a int * * @throws NullPointerException * if context or name is <code>null</code> */ public static int getIntegerInitParameter(ExternalContext context, String name) { return getIntegerInitParameter(context, name, 0); }
/** * Gets the int init parameter value from the specified context. If the parameter was not specified, the default * value is used instead. * * @param context * the application's external context * @param names * the init parameter's names * * @return the init parameter value as a int * * @throws NullPointerException * if context or name is <code>null</code> */ public static int getIntegerInitParameter(ExternalContext context, String[] names) { return getIntegerInitParameter(context, names, 0); }
/** * Gets the int init parameter value from the specified context. If the parameter was not specified, the default * value is used instead. * * @param context * the application's external context * @param names * the init parameter's names * * @return the init parameter value as a int * * @throws NullPointerException * if context or name is <code>null</code> */ public static int getIntegerInitParameter(ExternalContext context, String[] names) { return getIntegerInitParameter(context, names, 0); }
private int getViewIDCacheMaxSize(FacesContext context) { ExternalContext externalContext = context.getExternalContext(); return WebConfigParamUtils.getIntegerInitParameter(externalContext, CHECKED_VIEWID_CACHE_SIZE_ATTRIBUTE, CHECKED_VIEWID_CACHE_DEFAULT_SIZE); }
private int getViewIDCacheMaxSize(FacesContext context) { ExternalContext externalContext = context.getExternalContext(); return WebConfigParamUtils.getIntegerInitParameter(externalContext, CHECKED_VIEWID_CACHE_SIZE_ATTRIBUTE, CHECKED_VIEWID_CACHE_DEFAULT_SIZE); }
protected Integer getNumberOfSequentialViewsInSession(FacesContext context) { return WebConfigParamUtils.getIntegerInitParameter(context.getExternalContext(), NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION_PARAM); }
/** * Gets the int init parameter value from the specified context. If the parameter was not specified, the default * value is used instead. * * @param context * the application's external context * @param name * the init parameter's name * @param deprecatedName * the init parameter's deprecated name. * @param defaultValue * the default value to return in case the parameter was not set * * @return the init parameter value as a int * * @throws NullPointerException * if context or name is <code>null</code> */ public static int getIntegerInitParameter(ExternalContext context, String name) { return getIntegerInitParameter(context, name, 0); }
private int getMaxSize() { ExternalContext externalContext = FacesContext.getCurrentInstance() .getExternalContext(); return WebConfigParamUtils.getIntegerInitParameter(externalContext, RESOURCE_HANDLER_CACHE_SIZE_ATTRIBUTE, RESOURCE_HANDLER_CACHE_DEFAULT_SIZE); }
private int getMaxSize() { ExternalContext externalContext = FacesContext.getCurrentInstance() .getExternalContext(); return WebConfigParamUtils.getIntegerInitParameter(externalContext, RESOURCE_HANDLER_CACHE_SIZE_ATTRIBUTE, RESOURCE_HANDLER_CACHE_DEFAULT_SIZE); }