Author: chris.laprun(a)jboss.com
Date: 2010-02-09 17:38:46 -0500 (Tue, 09 Feb 2010)
New Revision: 1597
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
Log:
- Minor optimization: if we're using the default validator class, instantiate it
directly instead of doing it via reflection.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2010-02-09
22:37:06 UTC (rev 1596)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2010-02-09
22:38:46 UTC (rev 1597)
@@ -1,6 +1,6 @@
/*
* JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * Copyright 2010, Red Hat Middleware, LLC, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of
* individual contributors.
@@ -316,7 +316,7 @@
{
log.debug("Using default registration policy: " +
DEFAULT_POLICY_CLASS_NAME);
RegistrationPropertyValidator validator;
- if (validatorClassName != null)
+ if (validatorClassName != null &&
!DEFAULT_VALIDATOR_CLASS_NAME.equals(validatorClassName))
{
log.debug("Using registration property validator: " +
validatorClassName);
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Show replies by date