Package org.springframework.beans

Examples of org.springframework.beans.PropertyEditorRegistrySupport


   * instances, and for SimpleTypeConverter used for constructor argument
   * and factory method type conversion.
   * @param registry the PropertyEditorRegistry to initialize
   */
  protected void registerCustomEditors(PropertyEditorRegistry registry) {
    PropertyEditorRegistrySupport registrySupport =
        (registry instanceof PropertyEditorRegistrySupport ? (PropertyEditorRegistrySupport) registry : null);
    if (registrySupport != null) {
      registrySupport.useConfigValueEditors();
    }
    if (!this.propertyEditorRegistrars.isEmpty()) {
      for (PropertyEditorRegistrar registrar : this.propertyEditorRegistrars) {
        try {
          registrar.registerCustomEditors(registry);
View Full Code Here


   * instances, and for SimpleTypeConverter used for constructor argument
   * and factory method type conversion.
   * @param registry the PropertyEditorRegistry to initialize
   */
  protected void registerCustomEditors(PropertyEditorRegistry registry) {
    PropertyEditorRegistrySupport registrySupport =
        (registry instanceof PropertyEditorRegistrySupport ? (PropertyEditorRegistrySupport) registry : null);
    if (registrySupport != null) {
      registrySupport.useConfigValueEditors();
    }
    if (!this.propertyEditorRegistrars.isEmpty()) {
      for (PropertyEditorRegistrar registrar : this.propertyEditorRegistrars) {
        try {
          registrar.registerCustomEditors(registry);
View Full Code Here

        }
        continue;
      }

      // Find a property editor
      PropertyEditorRegistrySupport propertyEditorRegistrySupport = null;
      if (target instanceof PropertyEditorRegistrySupport) {
        propertyEditorRegistrySupport = (PropertyEditorRegistrySupport) target;
      }

      PropertyEditor propertyEditor = findEditor(propertyName, propertyEditorRegistrySupport,
View Full Code Here

  public GetAsTextStringEditor(final PropertyEditorRegistry aEditorRegistry) {
    editorRegistry = aEditorRegistry;
    if (aEditorRegistry instanceof PropertyEditorRegistrySupport) {
      editorRegistrySupport = (PropertyEditorRegistrySupport) aEditorRegistry;
    } else {
      editorRegistrySupport = new PropertyEditorRegistrySupport();
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.beans.PropertyEditorRegistrySupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.