All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seedstack.business.internal.migrate.GenericFactoryAdapter Maven / Gradle / Ivy

The newest version!
/*
 * Copyright © 2013-2024, The SeedStack authors 
 *
 * 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.business.internal.migrate;

import org.seedstack.business.domain.Factory;
import org.seedstack.business.domain.GenericFactory;
import org.seedstack.business.domain.Producible;

class GenericFactoryAdapter

implements GenericFactory

{ private final Factory

factory; GenericFactoryAdapter(Factory

factory) { this.factory = factory; } @Override public Class

getProducedClass() { return factory.getProducedClass(); } @Override public P create(Object... args) { return factory.create(args); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy