Author: chris.laprun(a)jboss.com
Date: 2007-02-09 17:51:23 -0500 (Fri, 09 Feb 2007)
New Revision: 6199
Modified:
trunk/registration/src/main/org/jboss/portal/registration/policies/RegistrationPropertyValidator.java
Log:
- Javadoc.
Modified:
trunk/registration/src/main/org/jboss/portal/registration/policies/RegistrationPropertyValidator.java
===================================================================
---
trunk/registration/src/main/org/jboss/portal/registration/policies/RegistrationPropertyValidator.java 2007-02-09
22:22:37 UTC (rev 6198)
+++
trunk/registration/src/main/org/jboss/portal/registration/policies/RegistrationPropertyValidator.java 2007-02-09
22:51:23 UTC (rev 6199)
@@ -26,11 +26,22 @@
import javax.xml.namespace.QName;
/**
+ * An interface providing an entry point for WSRP deployers to plug their registration
property validation mechanism in
+ * {@link org.jboss.portal.registration.policies.DefaultRegistrationPolicy}.
+ *
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @version $Revision$
* @since 2.6
*/
public interface RegistrationPropertyValidator
{
+ /**
+ * Validates the given value for the registration property identified by the specified
name. If the value is
+ * acceptable, the method simply returns. An invalid value will raise an exception.
+ *
+ * @param propertyName the qualified name for the property name
+ * @param value the value that needs to be validated
+ * @throws IllegalArgumentException if the specified value is not acceptable for the
specified property.
+ */
void validateValueFor(QName propertyName, Object value) throws
IllegalArgumentException;
}
Show replies by date