001 /*
002 * Copyright 2007 - 2009 JEuclid, http://jeuclid.sf.net
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 /* $Id: ConverterDetector.java,v 31460f6f5a3d 2009/04/09 08:06:13 maxberger $ */
018
019 package net.sourceforge.jeuclid.converter;
020
021 /**
022 * Interface for all Image Conversion Detectors.
023 *
024 * @version $Revision: 31460f6f5a3d $
025 */
026 public interface ConverterDetector {
027
028 /**
029 * Detects conversions available through this plugin and registers them
030 * with the given registry.
031 * <p>
032 * The detector should only register the conversions which can be carried
033 * out without Exceptions. The detection process itself should not throw
034 * an exception either. If a detector cannot find the necessary classes,
035 * it should register nothing.
036 *
037 * @param registry
038 * ConverterRegistry to use.
039 */
040 void detectConversionPlugins(final ConverterRegistry registry);
041
042 }