/** * Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.seedstack.seed.core.internal.data; import org.seedstack.seed.DataExporter; /** * Holds the definition of a {@link DataExporter}. * * @param <T> the exported data type. */ class DataExporterDefinition<T> { private final Class<? extends DataExporter<T>> dataExporterClass; private final String group; private final String name; private final Class<T> exportedClass; DataExporterDefinition(String name, String group, Class<T> exportedClass, Class<? extends DataExporter<T>> dataExporterClass) { this.name = name; this.group = group; this.dataExporterClass = dataExporterClass; this.exportedClass = exportedClass; } Class<? extends DataExporter<T>> getDataExporterClass() { return dataExporterClass; } String getGroup() { return group; } String getName() { return name; } public Class<T> getExportedClass() { return exportedClass; } }