View Javadoc
1 /* 2 * Copyright (C) The Spice Group. All rights reserved. 3 * 4 * This software is published under the terms of the Spice 5 * Software License version 1.1, a copy of which has been included 6 * with this distribution in the LICENSE.txt file. 7 */ 8 package org.codehaus.spice.converter.lib; 9 10 import org.codehaus.spice.converter.ConverterFactory; 11 12 /*** 13 * The work interface for a registry of converters. This gives the 14 * client the ability to register and deregister converters as well as 15 * listing converters currently registered. 16 * 17 * @author Peter Donald 18 * @version $Revision: 1.1 $ $Date: 2003/12/02 08:37:56 $ 19 */ 20 public interface ConverterRegistry 21 { 22 /*** 23 * Registers a converter. 24 * 25 * @param source the source classname 26 * @param destination the destination classname 27 * @param factory the factory to use to create a converter instance. 28 */ 29 void registerConverter( String source, 30 String destination, 31 ConverterFactory factory ); 32 33 /*** 34 * Deregisters a converter. If no converter is 35 * registered then method will silently return. 36 * 37 * @param source the source classname 38 * @param destination the destination classname 39 */ 40 //void deregisterConverter( String source, String destination ); 41 42 /*** 43 * Deregisters a converter. If no converter is 44 * registered then method will silently return. 45 * 46 * @param source the source classname 47 * @param destination the destination classname 48 * @return true if converter is registered, false otherwise 49 */ 50 //boolean isConverterRegistered( String source, String destination ); 51 }

This page was automatically generated by Maven