View Javadoc
1 package org.jdiseq.filter; 2 3 /*** 4 * Factory class to get references to the implementation of 5 * {@link FilterPersistence} and {@link Persister} interfaces. 6 * 7 * @author tronda 8 * @version $Id: FilterFactory.java,v 1.1 2003/08/06 20:50:42 trondandersen Exp $ 9 * @since 1.0 10 */ 11 public final class FilterFactory { 12 13 private static FilterPersistence impl; 14 private static Persister persisterImpl; 15 16 public static void setFilterPersistence(FilterPersistence implementation) { 17 FilterFactory.impl = implementation; 18 } 19 20 public static FilterPersistence getFilterPersistence() { 21 assert (FilterFactory.impl != null); 22 return FilterFactory.impl; 23 } 24 25 static Persister getPersister() { 26 assert (FilterFactory.persisterImpl != null); 27 return FilterFactory.persisterImpl; 28 } 29 30 public static void setPersister(Persister implementation) { 31 FilterFactory.persisterImpl = implementation; 32 } 33 34 private FilterFactory() { 35 } 36 }

This page was automatically generated by Maven