1 11 package org.jboss.portal.test.portlet.preferences.spec; 12 13 import javax.portlet.PreferencesValidator; 14 import javax.portlet.PortletPreferences; 15 import javax.portlet.ValidatorException; 16 17 21 public class CreateASingleInstanceOfValidatorValidator implements PreferencesValidator 22 { 23 24 private static int createdCount = 0; 25 26 public static int getCreatedCount() 27 { 28 return createdCount; 29 } 30 31 public CreateASingleInstanceOfValidatorValidator() 32 { 33 synchronized(CreateASingleInstanceOfValidatorValidator.class) 34 { 35 createdCount++; 36 } 37 } 38 39 public void validate(PortletPreferences preferences) throws ValidatorException 40 { 41 } 42 } 43 | Popular Tags |