You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gp...@apache.org on 2008/10/01 19:10:11 UTC

svn commit: r700842 [1/6] - in /myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger: ./ core/ core/src/ core/src/main/ core/src/main/config/ core/src/main/java/ core/src/main/java/org/ core/src/main/java/org/apache/ core/src/main/jav...

Author: gpetracek
Date: Wed Oct  1 10:10:07 2008
New Revision: 700842

URL: http://svn.apache.org/viewvc?rev=700842&view=rev
Log:
core of the trunk with pluggable logger

Added:
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/config/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/config/faces-config.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/ExtValInformation.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/ExtValContext.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/InformationProviderBean.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/AnnotationEntry.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractor.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractorFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractor.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractorFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/factory/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/factory/DefaultFactoryFinder.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/factory/FactoryFinder.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/factory/FactoryNames.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/initializer/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/initializer/component/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/initializer/component/ComponentInitializer.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/initializer/component/DefaultComponentInitializer.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/initializer/component/DefaultComponentInitializerFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/interceptor/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/interceptor/AbstractRendererInterceptor.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/interceptor/RendererInterceptor.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/interceptor/ValidationInterceptor.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/logging/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/logging/AbstractLoggerFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/logging/DefaultLoggerFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/logging/Level.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/logging/Logger.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/logging/LoggerWrapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/mapper/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/mapper/AbstractCustomNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/mapper/ClassMappingFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/mapper/NameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/CommonMetaDataKeys.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/BeanMetaDataExtractorAdapter.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/BeanMetaDataExtractorAdapterImpl.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/DefaultMetaDataExtractorFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/MetaDataExtractor.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/mapper/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/mapper/BeanValidationStrategyToMetaDataExtractorNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/mapper/CustomConfiguredValidationStrategyToMetaDataExtractorNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/mapper/CustomConventionValidationStrategyToMetaDataExtractorNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/mapper/DefaultValidationStrategyToMetaDataExtractorNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/metadata/extractor/mapper/SimpleValidationStrategyToMetaDataExtractorNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/recorder/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/recorder/ProcessedInformationRecorder.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/AbstractRenderKitWrapperFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/DefaultRenderKitWrapperFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/ExtValRenderKit.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/ExtValRenderKitFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/ExtValRendererProxy.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/ExtValRendererWrapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/renderkit/RendererProxyEntry.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/AbstractStartupListener.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/startup/ExtValStartupListener.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/AbstractValidationErrorMessageResolver.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/DefaultMessageResolverFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/DefaultValidationErrorMessageResolver.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/MessageResolver.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/mapper/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/mapper/CustomConfiguredValidationStrategyToMsgResolverNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/mapper/CustomConventionValidationStrategyToMsgResolverNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/mapper/DefaultModuleValidationStrategyToMsgResolverNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/mapper/DefaultValidationStrategyToMsgResolverNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/mapper/SimpleValidationStrategyToMsgResolverNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/AbstractValidationStrategy.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/AbstractValidatorAdapter.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/BeanValidationStrategyAdapter.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/BeanValidationStrategyAdapterImpl.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/DefaultValidationStrategyFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/ValidationStrategy.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/mapper/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/mapper/AnnotationToValidationStrategyBeanNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/mapper/CustomConfiguredAnnotationToValidationStrategyNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/mapper/CustomConventionAnnotationToValidationStrategyNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/mapper/DefaultAnnotationToValidationStrategyNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/strategy/mapper/SimpleAnnotationToValidationStrategyNameMapper.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/internal/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/internal/Priority.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/internal/ToDo.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/internal/UsageCategory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/internal/UsageInformation.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/ClassUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/ExtValUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/FaceletsTaglibExpressionUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/JsfUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/LogUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/ReflectionUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/util/WebXmlUtils.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/resources/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/resources/LICENSE.txt
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/resources/NOTICE.txt
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/java/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/java/org/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/java/org/apache/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/java/org/apache/myfaces/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/java/org/apache/myfaces/blank/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/java/org/apache/myfaces/blank/HelloWorldController.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/WEB-INF/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/WEB-INF/web.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/helloWorld.jsp
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/index.jsp
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/hello_world/src/main/webapp/page2.jsp
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/log4j.properties
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/apache/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/apache/myfaces/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/apache/myfaces/blank/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/apache/myfaces/blank/HelloWorldController.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/apache/myfaces/blank/domain/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/java/org/apache/myfaces/blank/domain/Person.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/WEB-INF/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/WEB-INF/web.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/helloWorld.jsp
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/index.jsp
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/logging_example/src/main/webapp/page2.jsp
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/examples/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/config/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/config/faces-config.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/commons/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/commons/CachingCommonsLoggingLoggerFactory.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/commons/CommonsLoggingLoggerAdapter.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/commons/ExtValJdk14Logger.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/commons/ExtValLog4JLogger.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/startup/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/java/org/apache/myfaces/extensions/validator/support/logging/startup/CommonsLoggingModuleStartupListener.java
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/resources/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/resources/LICENSE.txt
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/commons-logging-support/src/main/resources/NOTICE.txt
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/logging/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/optional-support/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/parent/
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/parent/LICENSE.txt
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/parent/NOTICE.txt
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/parent/pom.xml
    myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/pom.xml

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/pom.xml?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/pom.xml (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/pom.xml Wed Oct  1 10:10:07 2008
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.myfaces.extensions.validator</groupId>
+        <artifactId>myfaces-extval-parent</artifactId>
+        <version>1.2.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.myfaces.extensions.validator</groupId>
+    <artifactId>myfaces-extval-core</artifactId>
+    <name>MyFaces Extensions-Validator Core</name>
+    <version>${build.version}</version>
+    <packaging>jar</packaging>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-api</artifactId>
+            <version>${jsf.version}</version>
+            <scope>compile</scope>
+        </dependency>
+
+         <dependency>
+            <groupId>javax.el</groupId>
+            <artifactId>el-api</artifactId>
+            <version>1.0</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/config</directory>
+                <includes>
+                    <include>**/*xml</include>
+                </includes>
+                <targetPath>/META-INF</targetPath>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <includes>
+                    <include>LICENSE.txt</include>
+                    <include>NOTICE.txt</include>
+                </includes>
+                <targetPath>/META-INF</targetPath>
+            </resource>
+            <resource>
+                <directory>src/main/java</directory>
+                <includes>
+                    <include>**/*properties</include>
+                </includes>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <inherited>true</inherited>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/config/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/config/faces-config.xml?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/config/faces-config.xml (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/config/faces-config.xml Wed Oct  1 10:10:07 2008
@@ -0,0 +1,31 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
+              version="1.2">
+    <factory>
+        <render-kit-factory>org.apache.myfaces.extensions.validator.core.renderkit.ExtValRenderKitFactory</render-kit-factory>
+    </factory>
+
+    <lifecycle>
+        <phase-listener>org.apache.myfaces.extensions.validator.core.startup.ExtValStartupListener</phase-listener>
+    </lifecycle>
+</faces-config>
\ No newline at end of file

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/ExtValInformation.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/ExtValInformation.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/ExtValInformation.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/ExtValInformation.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator;
+
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+
+/**
+ * dont't move to an other package!!!
+ *
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.INTERNAL)
+public interface ExtValInformation
+{
+    static final String EXTENSIONS_VALIDATOR_BASE_PACKAGE_NAME = ExtValInformation.class.getPackage().getName();
+    static final String WEBXML_PARAM_PREFIX = ExtValInformation.class.getPackage().getName();
+    static final String VERSION = "1.2.1";
+}

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/ExtValContext.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/ExtValContext.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/ExtValContext.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/ExtValContext.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,169 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core;
+
+import org.apache.myfaces.extensions.validator.core.initializer.component.ComponentInitializer;
+import org.apache.myfaces.extensions.validator.core.initializer.component.DefaultComponentInitializer;
+import org.apache.myfaces.extensions.validator.core.interceptor.RendererInterceptor;
+import org.apache.myfaces.extensions.validator.core.recorder.ProcessedInformationRecorder;
+import org.apache.myfaces.extensions.validator.core.factory.FactoryFinder;
+import org.apache.myfaces.extensions.validator.core.factory.DefaultFactoryFinder;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+import org.apache.myfaces.extensions.validator.util.ClassUtils;
+import org.apache.myfaces.extensions.validator.util.ELUtils;
+
+import javax.faces.context.FacesContext;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.API)
+public class ExtValContext
+{
+    private static ExtValContext extValContext = new ExtValContext();
+
+    private FactoryFinder factoryFinder = new DefaultFactoryFinder();
+    private Map<String, RendererInterceptor> rendererInterceptors = new HashMap<String, RendererInterceptor>();
+    private List<String> deniedInterceptors = new ArrayList<String>();
+    private List<ProcessedInformationRecorder> processedInformationRecorders =
+        new ArrayList<ProcessedInformationRecorder>();
+
+    public static ExtValContext getContext()
+    {
+        return extValContext;
+    }
+
+    public FactoryFinder getFactoryFinder()
+    {
+        return factoryFinder;
+    }
+
+    public void setFactoryFinder(FactoryFinder factoryFinder)
+    {
+        if(factoryFinder != null)
+        {
+            this.factoryFinder = factoryFinder;
+        }
+    }
+
+    public List<RendererInterceptor> getRendererInterceptors()
+    {
+        return new ArrayList<RendererInterceptor>(rendererInterceptors.values());
+    }
+
+    public boolean registerRendererInterceptor(RendererInterceptor rendererInterceptor)
+    {
+        synchronized (ExtValContext.class)
+        {
+            if (deniedInterceptors.contains(rendererInterceptor.getInterceptorId()))
+            {
+                return false;
+            }
+
+            rendererInterceptors.put(rendererInterceptor.getInterceptorId(), rendererInterceptor);
+        }
+        return true;
+    }
+
+    public void deregisterRendererInterceptor(Class rendererInterceptorClass)
+    {
+        RendererInterceptor rendererInterceptor =
+            (RendererInterceptor) ClassUtils.tryToInstantiateClass(rendererInterceptorClass);
+
+        synchronized (ExtValContext.class)
+        {
+            rendererInterceptors.remove(rendererInterceptor.getInterceptorId());
+        }
+    }
+
+    //if an interceptor hasn't been registered so far, it should be denied at future registrations
+    public void denyRendererInterceptor(Class rendererInterceptorClass)
+    {
+        RendererInterceptor rendererInterceptor =
+            (RendererInterceptor) ClassUtils.tryToInstantiateClass(rendererInterceptorClass);
+
+        synchronized (ExtValContext.class)
+        {
+            deniedInterceptors.add(rendererInterceptor.getInterceptorId());
+        }
+        deregisterRendererInterceptor(rendererInterceptorClass);
+    }
+
+    public void addComponentInitializer(ComponentInitializer componentInitializer)
+    {
+        DefaultComponentInitializer.addComponentInitializer(componentInitializer);
+    }
+
+    public List<ProcessedInformationRecorder> getProcessedInformationRecorders()
+    {
+        return processedInformationRecorders;
+    }
+
+    public void addProcessedInformationRecorder(ProcessedInformationRecorder processedInformationRecorder)
+    {
+        this.processedInformationRecorders.add(processedInformationRecorder);
+    }
+
+    public InformationProviderBean getInformationProviderBean()
+    {
+        Map applicationMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap();
+        InformationProviderBean bean = (InformationProviderBean) applicationMap.get(InformationProviderBean.BEAN_NAME);
+
+        if (bean == null)
+        {
+            return initInformationProviderBean(applicationMap);
+        }
+        return bean;
+    }
+
+    private InformationProviderBean initInformationProviderBean(Map applicationMap)
+    {
+        List<String> informationProviderBeanClassNames = new ArrayList<String>();
+
+        informationProviderBeanClassNames.add(WebXmlParameter.CUSTOM_CONVENTION_INFO_PROVIDER_BEAN);
+        informationProviderBeanClassNames.add(getCustomInformationProviderBeanClassName());
+        informationProviderBeanClassNames.add(InformationProviderBean.class.getName());
+
+        InformationProviderBean informationProviderBean;
+        for (String className : informationProviderBeanClassNames)
+        {
+            informationProviderBean = (InformationProviderBean) ClassUtils.tryToInstantiateClassForName(className);
+
+            if (informationProviderBean != null)
+            {
+                applicationMap.put(InformationProviderBean.BEAN_NAME, informationProviderBean);
+                return informationProviderBean;
+            }
+        }
+        throw new IllegalStateException(InformationProviderBean.class.getName() + " not found");
+    }
+
+    private String getCustomInformationProviderBeanClassName()
+    {
+        InformationProviderBean bean = (InformationProviderBean) ELUtils.getBean(InformationProviderBean.CUSTOM_BEAN);
+
+        return (bean != null) ? bean.getClass().getName() : null;
+    }
+}
\ No newline at end of file

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/InformationProviderBean.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/InformationProviderBean.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/InformationProviderBean.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/InformationProviderBean.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,276 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core;
+
+import org.apache.myfaces.extensions.validator.ExtValInformation;
+import org.apache.myfaces.extensions.validator.core.validation.strategy.ValidationStrategy;
+import org.apache.myfaces.extensions.validator.internal.Priority;
+import org.apache.myfaces.extensions.validator.internal.ToDo;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+
+import java.lang.annotation.Annotation;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * centralized in order that these information aren't spread over the complete code base
+ * + some of them can be customized within a custom impl. of the bean
+ * (extend this class and provide it via convention or web.xml)
+ * <p/>
+ * the static api should only be used
+ *
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation({UsageCategory.API, UsageCategory.CUSTOMIZABLE})
+public class InformationProviderBean
+{
+    public static final String BEAN_NAME = ExtValInformation.EXTENSIONS_VALIDATOR_BASE_PACKAGE_NAME
+        + "." + InformationProviderBean.class.getSimpleName();
+    //custom class which is an optional replacement for this class (has to extend this class)
+    public static final String CUSTOM_BEAN = (ExtValInformation.EXTENSIONS_VALIDATOR_BASE_PACKAGE_NAME
+        + ".custom." + InformationProviderBean.class.getSimpleName()).replace(".", "_");
+    private String basePackage = WebXmlParameter.CUSTOM_EXTENSION_BASE_PACKAGE;
+
+    public InformationProviderBean()
+    {
+        if (this.basePackage == null)
+        {
+            this.basePackage = ExtValInformation.EXTENSIONS_VALIDATOR_BASE_PACKAGE_NAME + ".custom.";
+        }
+        if (!this.basePackage.endsWith("."))
+        {
+            this.basePackage = this.basePackage + ".";
+        }
+    }
+
+    public String getBasePackage()
+    {
+        return basePackage;
+    }
+
+    public String getCustomComponentAnnotationExtractor()
+    {
+        return this.basePackage + "AnnotationExtractor";
+    }
+
+    /*
+     * postfix used by the SimpleAnnotationToValidationStrategyNameMapper
+     * the SimpleAnnotationToValidationStrategyNameMapper is for custom strategies only
+     * (not for public validation modules)
+     * so it's fine to customize it
+     */
+    public String getValidationStrategyPostfix()
+    {
+        return "ValidationStrategy";
+    }
+
+    public String getMetaDataExtractorPostfix()
+    {
+        return "MetaDataExtractor";
+    }
+
+    /*
+     * name mapper
+     */
+    public String getCustomValidationStrategyToMsgResolverNameMapper()
+    {
+        return this.basePackage + "ValidationStrategyToMsgResolverNameMapper";
+    }
+
+    public String getCustomAnnotationToValidationStrategyNameMapper()
+    {
+        return this.basePackage + "AnnotationToValidationStrategyNameMapper";
+    }
+
+    public String getCustomValidationStrategyToMetaDataExtractorNameMapper()
+    {
+        return this.basePackage + "ValidationStrategyToMetaDataExtractorNameMapper";
+    }
+
+    /*
+     * initializer
+     */
+    public String getCustomRenderingContextInitializer()
+    {
+        return this.basePackage + "RenderingContextInitializer";
+    }
+
+    public String getCustomComponentInitializer()
+    {
+        return this.basePackage + "ComponentInitializer";
+    }
+
+    /*
+     * factories
+     */
+    public String getCustomMessageResolverFactory()
+    {
+        return this.basePackage + "MessageResolverFactory";
+    }
+
+    public String getCustomValidationStrategyFactory()
+    {
+        return this.basePackage + "ValidationStrategyFactory";
+    }
+
+    public String getCustomRenderingContextInitializerFactory()
+    {
+        return this.basePackage + "RenderingContextInitializerFactory";
+    }
+
+    public String getCustomComponentInitializerFactory()
+    {
+        return this.basePackage + "ComponentInitializerFactory";
+    }
+
+    public String getCustomComponentAnnotationExtractorFactory()
+    {
+        return this.basePackage + "AnnotationExtractorFactory";
+    }
+
+    public String getCustomMetaDataExtractorFactory()
+    {
+        return this.basePackage + "MetaDataExtractorFactory";
+    }
+
+    /*
+     * conventions (the rest of the conventions are built with the help of name mappers,...
+     */
+    public String getConventionForCustomMessageBundle()
+    {
+        return this.basePackage + "validation_messages";
+    }
+
+    /*
+     * init hook for component libs which use a rendering context (e.g. Trinidad)
+     */
+
+    /*
+     * static strategy mappings (name of property files)
+     */
+    public String getCustomStaticStrategyMappingSource()
+    {
+        return this.basePackage + "strategy_mappings";
+    }
+
+    private List<String> staticStrategyMappings = new ArrayList<String>();
+
+    /*
+     * final methods
+     */
+    public final String getConventionForModuleMessageBundle(String packageName)
+    {
+        String newPackageName;
+        if (packageName.endsWith(".resolver"))
+        {
+            newPackageName = packageName.replace(".resolver", ".bundle");
+        }
+        else
+        {
+            newPackageName = packageName.replace(".resolver.", ".bundle.");
+        }
+
+        return newPackageName + ".validation_messages";
+    }
+
+    public final List<String> getStaticStrategyMappingSources()
+    {
+        return this.staticStrategyMappings;
+    }
+
+    public final void addStaticStrategyMappingSource(String resourceBundleName)
+    {
+        synchronized (this)
+        {
+            this.staticStrategyMappings.add(resourceBundleName);
+        }
+    }
+
+    public final boolean containsStaticStrategyMappingSource(
+        String resourceBundleName)
+    {
+        return this.staticStrategyMappings.contains(resourceBundleName);
+    }
+
+    /**
+     * use a custom name mapper to implement custom conventions
+     */
+    @ToDo(value = Priority.MEDIUM, description = "logging")
+    public final String getConventionNameForMessageResolverName(
+        Class<? extends ValidationStrategy> validationStrategyClass, String targetClassName)
+    {
+        return getValidationStrategyBasedName(validationStrategyClass, ".message.resolver.", targetClassName);
+    }
+
+    public final String getConventionNameForMetaDataExtractorName(
+        Class<? extends ValidationStrategy> validationStrategyClass, String targetClassName)
+    {
+        return getValidationStrategyBasedName(validationStrategyClass, ".metadata.extractor.", targetClassName);
+    }
+
+    private String getValidationStrategyBasedName(Class<? extends ValidationStrategy> validationStrategyClass,
+                                                  String targetPackageName, String targetClassName)
+    {
+        String extractorName = validationStrategyClass.getName();
+
+        extractorName = extractorName.replace(".strategy.", targetPackageName);
+
+        if (targetClassName == null)
+        {
+            return null;
+        }
+        return extractorName.substring(0, extractorName.lastIndexOf(".")) + "." + targetClassName;
+    }
+
+    /**
+     * use a custom name mapper to implement custom conventions
+     */
+    public final String getConventionNameForMessageResolverClass(String validationStrategyName)
+    {
+        return getValidationStrategyBasedName(validationStrategyName, "ValidationErrorMessageResolver");
+    }
+
+    /**
+     * use a custom name mapper to implement custom conventions
+     */
+    public final String getConventionNameForValidationStrategy(Annotation annotation)
+    {
+        return annotation.annotationType().getName().replace(".annotation.", ".strategy.") + "Strategy";
+    }
+
+    public final String getConventionNameForMetaDataExtractorClass(String validationStrategyName)
+    {
+        return getValidationStrategyBasedName(validationStrategyName, "MetaDataExtractor");
+    }
+
+    private String getValidationStrategyBasedName(String validationStrategyName, String targetPostfix)
+    {
+        if (validationStrategyName.endsWith("ValidationStrategy"))
+        {
+            return validationStrategyName.substring(0, validationStrategyName.length() - 18) + targetPostfix;
+        }
+        else if (validationStrategyName.endsWith("Strategy"))
+        {
+            return validationStrategyName.substring(0, validationStrategyName.length() - 8) + targetPostfix;
+        }
+        return null;
+    }
+}
\ No newline at end of file

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/WebXmlParameter.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core;
+
+import org.apache.myfaces.extensions.validator.internal.Priority;
+import org.apache.myfaces.extensions.validator.internal.ToDo;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+import org.apache.myfaces.extensions.validator.util.WebXmlUtils;
+
+/**
+ * centralized in order that these information aren't spread over the complete code base
+ *
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.API)
+public interface WebXmlParameter
+{
+    /*
+     * custom
+     */
+    static final String CUSTOM_MESSAGE_BUNDLE = WebXmlUtils
+        .getInitParameter("CUSTOM_MESSAGE_BUNDLE");
+    static final String CUSTOM_EXTENSION_BASE_PACKAGE = WebXmlUtils
+        .getInitParameter("CUSTOM_BASE_PACKAGE");
+    static final String CUSTOM_CONVENTION_INFO_PROVIDER_BEAN = WebXmlUtils
+        .getInitParameter("CUSTOM_INFORMATION_PROVIDER_BEAN");
+
+    static final String CUSTOM_STRATEGY_TO_MESSAGE_RESOLVER_NAME_MAPPER = WebXmlUtils
+        .getInitParameter("CUSTOM_STRATEGY_TO_MESSAGE_RESOLVER_NAME_MAPPER");
+    static final String CUSTOM_ANNOTATION_TO_VALIDATION_STRATEGY_NAME_MAPPER = WebXmlUtils
+        .getInitParameter("CUSTOM_ANNOTATION_TO_VALIDATION_STRATEGY_NAME_MAPPER");
+
+    static final String CUSTOM_MESSAGE_RESOLVER_FACTORY = WebXmlUtils
+        .getInitParameter("CUSTOM_MESSAGE_RESOLVER_FACTORY");
+    static final String CUSTOM_VALIDATION_STRATEGY_FACTORY = WebXmlUtils
+        .getInitParameter("CUSTOM_VALIDATION_STRATEGY_FACTORY");
+    static final String CUSTOM_COMPONENT_ANNOTATION_EXTRACTOR_FACTORY = WebXmlUtils
+        .getInitParameter("CUSTOM_COMPONENT_ANNOTATION_EXTRACTOR_FACTORY");
+
+    static final String CUSTOM_COMPONENT_ANNOTATION_EXTRACTOR = WebXmlUtils
+        .getInitParameter("CUSTOM_COMPONENT_ANNOTATION_EXTRACTOR");
+
+    @ToDo(value = Priority.MEDIUM, description = "documentation")
+    static final String CUSTOM_VALIDATIONSTRATEGY_MAPPING = WebXmlUtils
+        .getInitParameter("CUSTOM_STATIC_VALIDATIONSTRATEGY_MAPPING");
+
+    static final String CUSTOM_RENDERING_CONTEXT_INITIALIZER_FACTORY = WebXmlUtils
+        .getInitParameter("CUSTOM_RENDERING_CONTEXT_INITIALIZER_FACTORY");
+
+    static final String CUSTOM_RENDERING_CONTEXT_INITIALIZER = WebXmlUtils
+        .getInitParameter("CUSTOM_RENDERING_CONTEXT_INITIALIZER");
+
+    static final String CUSTOM_COMPONENT_INITIALIZER_FACTORY = WebXmlUtils
+        .getInitParameter("CUSTOM_COMPONENT_INITIALIZER_FACTORY");
+
+    static final String CUSTOM_COMPONENT_INITIALIZER = WebXmlUtils
+        .getInitParameter("CUSTOM_COMPONENT_INITIALIZER");
+
+    static final String CUSTOM_META_DATA_EXTRACTOR_FACTORY = WebXmlUtils
+        .getInitParameter("CUSTOM_META_DATA_EXTRACTOR_FACTORY");
+
+    static final String CUSTOM_VALIDATION_STRATEGY_TO_META_DATA_EXTRACTOR_NAME_MAPPER = WebXmlUtils
+        .getInitParameter("CUSTOM_VALIDATION_STRATEGY_TO_META_DATA_EXTRACTOR_NAME_MAPPER");
+
+    /*
+     * deactivate
+     */
+    static final String DEACTIVATE_RENDERKIT = WebXmlUtils
+        .getInitParameter("DEACTIVATE_RENDERKIT");
+
+    static final String DEACTIVATE_DEFAULT_CONVENTION = WebXmlUtils
+        .getInitParameter("DEACTIVATE_DEFAULT_CONVENTION");
+
+    //there is nothing like DEACTIVATE_DEFAULT_VALIDATION_INTERCEPTOR
+    //use ExtValContext.getContext().denyRendererInterceptor(...) within an extval-StartupListener
+}
\ No newline at end of file

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/AnnotationEntry.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/AnnotationEntry.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/AnnotationEntry.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/AnnotationEntry.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core.annotation;
+
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+
+import java.lang.annotation.Annotation;
+
+/**
+ * Data holder which stores the annotation and some information where the annotation was around.
+ *
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.API)
+public class AnnotationEntry
+{
+    private Annotation annotation;
+    private String valueBindingExpression;
+    //e.g. valueBindingName, DefaultValueBindingScanningAnnotationExtractor uses it for the variable-/method-name
+    private String boundTo;
+    private Class entityClass;
+
+    //requested by bernhard huemer
+    public <T> T getAnnotation(Class<T> targetClass)
+    {
+        return (T) annotation;
+    }
+
+    /*
+     * generated
+     */
+    public Annotation getAnnotation()
+    {
+        return annotation;
+    }
+
+    public void setAnnotation(Annotation annotation)
+    {
+        this.annotation = annotation;
+    }
+
+    public String getValueBindingExpression()
+    {
+        return valueBindingExpression;
+    }
+
+    public void setValueBindingExpression(String valueBindingExpression)
+    {
+        this.valueBindingExpression = valueBindingExpression;
+    }
+
+    public String getBoundTo()
+    {
+        return boundTo;
+    }
+
+    public void setBoundTo(String boundTo)
+    {
+        this.boundTo = boundTo;
+    }
+
+    public Class getEntityClass()
+    {
+        return entityClass;
+    }
+
+    public void setEntityClass(Class entityClass)
+    {
+        this.entityClass = entityClass;
+    }
+}

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractor.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractor.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractor.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractor.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core.annotation.extractor;
+
+import org.apache.myfaces.extensions.validator.core.annotation.AnnotationEntry;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+
+import javax.faces.context.FacesContext;
+import java.util.List;
+
+/**
+ * An annotation extractor is responsible to analyze an object
+ * and returns all available annotations
+ * 
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.API)
+public interface AnnotationExtractor
+{
+    List<AnnotationEntry> extractAnnotations(FacesContext facesContext, Object object);
+}

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractorFactory.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractorFactory.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractorFactory.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/AnnotationExtractorFactory.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core.annotation.extractor;
+
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+
+/**
+ * The interface for all factories which create annotation extractors
+ * 
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.API)
+public interface AnnotationExtractorFactory
+{
+    AnnotationExtractor create();
+}
\ No newline at end of file

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractor.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractor.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractor.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractor.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,203 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core.annotation.extractor;
+
+import org.apache.myfaces.extensions.validator.core.annotation.AnnotationEntry;
+import org.apache.myfaces.extensions.validator.util.ELUtils;
+import org.apache.myfaces.extensions.validator.util.LogUtils;
+import org.apache.myfaces.extensions.validator.internal.ToDo;
+import org.apache.myfaces.extensions.validator.internal.Priority;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Default implementation which extracts the annotations of the value binding of a component.
+ * It extracts the annotation of the field and the property.
+ * (Also the annotations of super classes and interfaces.)
+ *
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.INTERNAL)
+public class DefaultComponentAnnotationExtractor implements AnnotationExtractor
+{
+    @ToDo(Priority.MEDIUM)
+    public List<AnnotationEntry> extractAnnotations(FacesContext facesContext, Object object)
+    {
+        //should never occur
+        if (!(object instanceof UIComponent))
+        {
+            return new ArrayList<AnnotationEntry>();
+        }
+
+        UIComponent uiComponent = (UIComponent) object;
+
+        LogUtils.trace("start extracting annotations of " + uiComponent.getClass().getName(), getClass());
+
+        List<AnnotationEntry> annotationEntries = new ArrayList<AnnotationEntry>();
+
+        String valueBindingExpression = ELUtils.getReliableValueBindingExpression(uiComponent);
+
+        if (valueBindingExpression == null)
+        {
+            return new ArrayList<AnnotationEntry>();
+        }
+
+        /*
+         * get bean class and property name
+         */
+        int beanPropertyBorder = valueBindingExpression.lastIndexOf('.');
+
+        if (beanPropertyBorder < 0)
+        {
+            return new ArrayList<AnnotationEntry>();
+        }
+
+        String beans = valueBindingExpression.substring(valueBindingExpression.indexOf('{') + 1, beanPropertyBorder);
+
+        String property = valueBindingExpression.substring(beanPropertyBorder + 1, valueBindingExpression.indexOf('}'));
+
+        Class entityClass = ELUtils.getTypeOfValueBindingForExpression(facesContext, "#{" + beans + "}");
+
+        //create template entry
+        AnnotationEntry templateEntry = new AnnotationEntry();
+        //TODO test with complex components
+        templateEntry.setValueBindingExpression(valueBindingExpression);
+        templateEntry.setEntityClass(entityClass);
+        templateEntry.setBoundTo("value");
+
+        /*
+         * find and add annotations
+         */
+        Class currentClass = entityClass;
+
+        while (!Object.class.getName().equals(currentClass.getName()))
+        {
+            addPropertyAccessAnnotations(currentClass, property, annotationEntries, templateEntry);
+            addFieldAccessAnnotations(currentClass, property, annotationEntries, templateEntry);
+
+            currentClass = currentClass.getSuperclass();
+        }
+
+        for (Class currentInterface : entityClass.getInterfaces())
+        {
+            currentClass = currentInterface;
+
+            while (currentClass != null)
+            {
+                addPropertyAccessAnnotations(currentClass, property, annotationEntries, templateEntry);
+
+                currentClass = currentClass.getSuperclass();
+            }
+        }
+
+        LogUtils.trace("extractAnnotations finished", getClass());
+
+        return annotationEntries;
+    }
+
+    protected void addPropertyAccessAnnotations(Class entity, String property,
+                                                List<AnnotationEntry> annotationEntries,
+                                                AnnotationEntry templateEntry)
+    {
+        property = property.substring(0, 1).toUpperCase() + property.substring(1);
+
+        Method method;
+
+        try
+        {
+            method = entity.getDeclaredMethod("get" + property);
+        }
+        catch (NoSuchMethodException e)
+        {
+            try
+            {
+                method = entity.getDeclaredMethod("is" + property);
+            }
+            catch (NoSuchMethodException e1)
+            {
+                LogUtils.trace("method not found - class: " + entity.getName()
+                    + " - methods: " + "get" + property + " " + "is" + property, getClass());
+                return;
+            }
+        }
+
+        addAnnotationToAnnotationEntries(annotationEntries, Arrays.asList(method.getAnnotations()), templateEntry);
+    }
+
+    protected void addFieldAccessAnnotations(Class entity, String property,
+                                             List<AnnotationEntry> annotationEntries,
+                                             AnnotationEntry templateEntry)
+    {
+        Field field;
+
+        try
+        {
+            field = entity.getDeclaredField(property);
+        }
+        catch (Exception e)
+        {
+            try
+            {
+                field = entity.getDeclaredField("_" + property);
+            }
+            catch (NoSuchFieldException e1)
+            {
+                LogUtils.trace("field " + property + " or _" + property + " not found", getClass());
+                return;
+            }
+        }
+
+        addAnnotationToAnnotationEntries(annotationEntries, Arrays.asList(field.getAnnotations()), templateEntry);
+    }
+
+    protected void addAnnotationToAnnotationEntries(
+        List<AnnotationEntry> annotationEntries,
+        List<Annotation> annotations, AnnotationEntry templateEntry)
+    {
+        for (Annotation annotation : annotations)
+        {
+            annotationEntries.add(createAnnotationEntry(annotation, templateEntry));
+
+            LogUtils.trace(annotation.getClass().getName() + " found", getClass());
+        }
+    }
+
+    protected AnnotationEntry createAnnotationEntry(Annotation foundAnnotation, AnnotationEntry templateEntry)
+    {
+        AnnotationEntry entry = new AnnotationEntry();
+
+        entry.setAnnotation(foundAnnotation);
+
+        entry.setEntityClass(templateEntry.getEntityClass());
+        entry.setValueBindingExpression(templateEntry.getValueBindingExpression());
+        entry.setBoundTo(templateEntry.getBoundTo());
+
+        return entry;
+    }
+}

Added: myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractorFactory.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractorFactory.java?rev=700842&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractorFactory.java (added)
+++ myfaces/extensions/validator/branches/trunk_core_with_pluggable_logger/core/src/main/java/org/apache/myfaces/extensions/validator/core/annotation/extractor/DefaultComponentAnnotationExtractorFactory.java Wed Oct  1 10:10:07 2008
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.extensions.validator.core.annotation.extractor;
+
+import org.apache.myfaces.extensions.validator.core.WebXmlParameter;
+import org.apache.myfaces.extensions.validator.core.ExtValContext;
+import org.apache.myfaces.extensions.validator.util.ClassUtils;
+import org.apache.myfaces.extensions.validator.util.LogUtils;
+import org.apache.myfaces.extensions.validator.internal.ToDo;
+import org.apache.myfaces.extensions.validator.internal.Priority;
+import org.apache.myfaces.extensions.validator.internal.UsageInformation;
+import org.apache.myfaces.extensions.validator.internal.UsageCategory;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * This factory creates an annotation extractor which extracts the annotation
+ * of the value binding of a component.
+ * <p/>
+ * order:<br/>
+ * <ol>
+ *   <li>configured annotation extractor (web.xml)</li>
+ *   <li>configured annotation extractor (information provider bean)</li>
+ *   <li>default implementation</li>
+ * </ol>
+ *
+ * @author Gerhard Petracek
+ * @since 1.x.1
+ */
+@UsageInformation(UsageCategory.INTERNAL)
+public class DefaultComponentAnnotationExtractorFactory implements AnnotationExtractorFactory
+{
+
+    private static AnnotationExtractor annotationExtractor = null;
+
+    @ToDo(value = Priority.MEDIUM, description = "logging")
+    public AnnotationExtractor create()
+    {
+        if (annotationExtractor == null)
+        {
+            List<String> annotationExtractorClassNames = new ArrayList<String>();
+
+            annotationExtractorClassNames.add(WebXmlParameter.CUSTOM_COMPONENT_ANNOTATION_EXTRACTOR);
+            annotationExtractorClassNames
+                .add(ExtValContext.getContext().getInformationProviderBean().getCustomComponentAnnotationExtractor());
+            annotationExtractorClassNames.add(DefaultComponentAnnotationExtractor.class.getName());
+
+            for (String className : annotationExtractorClassNames)
+            {
+                annotationExtractor = (AnnotationExtractor) ClassUtils.tryToInstantiateClassForName(className);
+
+                if (annotationExtractor != null)
+                {
+                    break;
+                }
+            }
+        }
+
+        LogUtils.trace(annotationExtractor.getClass().getName() + " created", getClass());
+
+        return annotationExtractor;
+    }
+}
\ No newline at end of file