2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.concepts.transform;
12 * Input class based transformer
14 * {@link Transformer} which accepts / transforms only specific classes of
15 * input, and is useful if the selection of transformer should be based on the
16 * class of the input and there is one-to-one mapping between input class and
23 * Common supertype of input
25 * Concrete type of input
29 public interface InputClassBasedTransformer<S, I extends S, P> extends
33 * Returns an {@link Class} of input which is acceptable for transformation.
35 * @return {@link Class} of input which is acceptable for transformation.
37 Class<? extends S> getInputClass();