org.broadleafcommerce.common.presentation
Annotation Type ValidationConfiguration


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface ValidationConfiguration

Author:
jfischer

Required Element Summary
 String validationImplementation
          The fully qualified classname of the org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator instance to use for validation
 
Optional Element Summary
 ConfigurationItem[] configurationItems
          Optional configuration items that can be used to setup the validator
 

Element Detail

validationImplementation

public abstract String validationImplementation

The fully qualified classname of the org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator instance to use for validation

If you need to do dependency injection, this can also correspond to a bean ID that implements the org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator interface.

Returns:
the validator implementation. This implementation should be an instance of org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator and could be either a bean name or fully-qualified class name

configurationItems

public abstract ConfigurationItem[] configurationItems

Optional configuration items that can be used to setup the validator

. Most validators should have at least a single configuration item with ConfigurationItem.ERROR_MESSAGE.

Returns:
validator configuration attributes
Default:
{}


Copyright © 2013. All Rights Reserved.