@Override public void addComponent(String componentType, String componentClassName) { checkNull(componentType, "componentType"); checkEmpty(componentType, "componentType"); checkNull(componentClassName, "componentClassName"); checkEmpty(componentClassName, "componentClassName"); try { _componentClassMap.put(componentType, ClassUtils.simpleClassForName(componentClassName)); if (log.isTraceEnabled()) log.trace("add Component class = " + componentClassName + " for type = " + componentType); } catch (Exception e) { log.error("Component class " + componentClassName + " not found", e); } }
@Override public void addValidator(String validatorId, String validatorClass) { checkNull(validatorId, "validatorId"); checkEmpty(validatorId, "validatorId"); checkNull(validatorClass, "validatorClass"); checkEmpty(validatorClass, "validatorClass"); try { _validatorClassMap.put(validatorId, ClassUtils.simpleClassForName(validatorClass)); if (log.isTraceEnabled()) log.trace("add Validator id = " + validatorId + " class = " + validatorClass); } catch (Exception e) { log.error("Validator class " + validatorClass + " not found", e); } }
@Override public void addConverter(Class targetClass, String converterClass) { checkNull(targetClass, "targetClass"); checkNull(converterClass, "converterClass"); checkEmpty(converterClass, "converterClass"); try { _converterClassNameToClassMap.put(targetClass, converterClass); if (log.isTraceEnabled()) log.trace("add Converter for class = " + targetClass + " converterClass = " + converterClass); } catch (Exception e) { log.error("Converter class " + converterClass + " not found", e); } }
@Override public final void addConverter(final Class<?> targetClass, final String converterClass) { checkNull(targetClass, "targetClass"); checkNull(converterClass, "converterClass"); checkEmpty(converterClass, "converterClass"); try { _converterClassNameToClassMap.put(targetClass, converterClass); if (log.isLoggable(Level.FINEST)) log.finest("add Converter for class = " + targetClass + " converterClass = " + converterClass); } catch (Exception e) { log.log(Level.SEVERE, "Converter class " + converterClass + " not found", e); } }
public void addConverterConfiguration(String converterClassName, org.apache.myfaces.config.impl.digester.elements.Converter configuration) { checkNull(converterClassName, "converterClassName"); checkEmpty(converterClassName, "converterClassName"); checkNull(configuration, "configuration"); _converterClassNameToConfigurationMap.put(converterClassName, configuration); }
@Override public void addConverter(String converterId, String converterClass) { checkNull(converterId, "converterId"); checkEmpty(converterId, "converterId"); checkNull(converterClass, "converterClass"); checkEmpty(converterClass, "converterClass"); try { _converterIdToClassMap.put(converterId, ClassUtils.simpleClassForName(converterClass)); if (log.isTraceEnabled()) log.trace("add Converter id = " + converterId + " converterClass = " + converterClass); } catch (Exception e) { log.error("Converter class " + converterClass + " not found", e); } }
@Override public final void addConverter(final Class<?> targetClass, final String converterClass) { checkNull(targetClass, "targetClass"); checkNull(converterClass, "converterClass"); checkEmpty(converterClass, "converterClass"); try { _converterClassNameToClassMap.put(targetClass, converterClass); if (log.isLoggable(Level.FINEST)) log.finest("add Converter for class = " + targetClass + " converterClass = " + converterClass); } catch (Exception e) { log.log(Level.SEVERE, "Converter class " + converterClass + " not found", e); } }
@Override public void addBehavior(String behaviorId, String behaviorClass) { checkNull(behaviorId, "behaviorId"); checkEmpty(behaviorId, "behaviorId"); checkNull(behaviorClass, "behaviorClass"); checkEmpty(behaviorClass, "behaviorClass"); try { if(isLazyLoadConfigObjects()) _behaviorClassMap.put(behaviorId, behaviorClass); else _behaviorClassMap.put(behaviorId, ClassUtils.simpleClassForName(behaviorClass)); if (log.isLoggable(Level.FINEST)) log.finest("add Behavior class = " + behaviorClass + " for id = " + behaviorId); } catch (Exception e) { log.log(Level.SEVERE, "Behavior class " + behaviorClass + " not found", e); } }
@Override public final void addValidator(final String validatorId, final String validatorClass) { checkNull(validatorId, "validatorId"); checkEmpty(validatorId, "validatorId"); checkNull(validatorClass, "validatorClass"); checkEmpty(validatorClass, "validatorClass"); try { if(isLazyLoadConfigObjects()) _validatorClassMap.put(validatorId, validatorClass); else _validatorClassMap.put(validatorId, ClassUtils.simpleClassForName(validatorClass)); if (log.isLoggable(Level.FINEST)) log.finest("add Validator id = " + validatorId + " class = " + validatorClass); } catch (Exception e) { log.log(Level.SEVERE, "Validator class " + validatorClass + " not found", e); } }
@Override public final void addComponent(final String componentType, final String componentClassName) { checkNull(componentType, "componentType"); checkEmpty(componentType, "componentType"); checkNull(componentClassName, "componentClassName"); checkEmpty(componentClassName, "componentClassName"); try { if(isLazyLoadConfigObjects()) _componentClassMap.put(componentType, componentClassName); else _componentClassMap.put(componentType, ClassUtils.simpleClassForName(componentClassName)); if (log.isLoggable(Level.FINEST)) log.finest("add Component class = " + componentClassName + " for type = " + componentType); } catch (Exception e) { log.log(Level.SEVERE, "Component class " + componentClassName + " not found", e); } }
@Override public final void addConverter(final String converterId, final String converterClass) { checkNull(converterId, "converterId"); checkEmpty(converterId, "converterId"); checkNull(converterClass, "converterClass"); checkEmpty(converterClass, "converterClass"); try { if(isLazyLoadConfigObjects()) _converterIdToClassMap.put(converterId, converterClass); else _converterIdToClassMap.put(converterId, ClassUtils.simpleClassForName(converterClass)); if (log.isLoggable(Level.FINEST)) log.finest("add Converter id = " + converterId + " converterClass = " + converterClass); } catch (Exception e) { log.log(Level.SEVERE, "Converter class " + converterClass + " not found", e); } }
@Override public final void addValidator(final String validatorId, final String validatorClass) { checkNull(validatorId, "validatorId"); checkEmpty(validatorId, "validatorId"); checkNull(validatorClass, "validatorClass"); checkEmpty(validatorClass, "validatorClass"); try { if(isLazyLoadConfigObjects()) _validatorClassMap.put(validatorId, validatorClass); else _validatorClassMap.put(validatorId, ClassUtils.simpleClassForName(validatorClass)); if (log.isLoggable(Level.FINEST)) log.finest("add Validator id = " + validatorId + " class = " + validatorClass); } catch (Exception e) { log.log(Level.SEVERE, "Validator class " + validatorClass + " not found", e); } }
/** * @deprecated Use createComponent(ValueExpression, FacesContext, String) instead. */ @Deprecated @Override public UIComponent createComponent(ValueBinding valueBinding, FacesContext facesContext, String componentType) throws FacesException { checkNull(valueBinding, "valueBinding"); checkNull(facesContext, "facesContext"); checkNull(componentType, "componentType"); checkEmpty(componentType, "componentType"); ValueExpression valExpression = new ValueBindingToValueExpression(valueBinding); return createComponent(valExpression, facesContext, componentType); }
/** * @deprecated Use createComponent(ValueExpression, FacesContext, String) instead. */ @Deprecated @Override public final UIComponent createComponent(final ValueBinding valueBinding, final FacesContext facesContext, final String componentType) throws FacesException { checkNull(valueBinding, "valueBinding"); checkNull(facesContext, "facesContext"); checkNull(componentType, "componentType"); checkEmpty(componentType, "componentType"); final ValueExpression valExpression = new ValueBindingToValueExpression(valueBinding); return createComponent(valExpression, facesContext, componentType); }
/** * @deprecated Use createComponent(ValueExpression, FacesContext, String) instead. */ @Deprecated @Override public final UIComponent createComponent(final ValueBinding valueBinding, final FacesContext facesContext, final String componentType) throws FacesException { checkNull(valueBinding, "valueBinding"); checkNull(facesContext, "facesContext"); checkNull(componentType, "componentType"); checkEmpty(componentType, "componentType"); final ValueExpression valExpression = new ValueBindingToValueExpression(valueBinding); return createComponent(valExpression, facesContext, componentType); }
/** * @deprecated Use createComponent(ValueExpression, FacesContext, String) instead. */ @Deprecated @Override public final UIComponent createComponent(final ValueBinding valueBinding, final FacesContext facesContext, final String componentType) throws FacesException { checkNull(valueBinding, "valueBinding"); checkNull(facesContext, "facesContext"); checkNull(componentType, "componentType"); checkEmpty(componentType, "componentType"); final ValueExpression valExpression = new ValueBindingToValueExpression(valueBinding); return createComponent(valExpression, facesContext, componentType); }
/** * @deprecated */ @Override public final ValueBinding createValueBinding(final String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression(threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Override public ValueBinding createValueBinding(String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression(threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Override public final ValueBinding createValueBinding(final String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression(threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Override public final ValueBinding createValueBinding(final String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression( threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }