/******************************************************************************* * Copyright (c) 2013 Rene Schneider, GEBIT Solutions GmbH and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ package de.gebit.integrity.wrapper; import de.gebit.integrity.dsl.CustomOperation; import de.gebit.integrity.dsl.MethodReference; import de.gebit.integrity.fixtures.FixtureWrapper; import de.gebit.integrity.operations.custom.CustomOperationWrapper; /** * The wrapper factory is responsible for the actual creation of the {@link FixtureWrapper} and * {@link CustomOperationWrapper} instances. This also includes instantiation of the fixture/operation classes. * * @author Rene Schneider - initial API and implementation * */ public interface WrapperFactory { /** * Creates a new {@link FixtureWrapper} for the given {@link MethodReference}. * * @param aFixtureMethodRef * the fixture method to instantiate * @return the {@link FixtureWrapper} instance * @throws ClassNotFoundException * @throws InstantiationException * @throws IllegalAccessException */ FixtureWrapper<?> newFixtureWrapper(MethodReference aFixtureMethodRef) throws ClassNotFoundException, InstantiationException, IllegalAccessException; /** * Creates a new {@link CustomOperationWrapper} for the given {@link CustomOperation}. * * @param anOperation * the operation to instantiate * @return the {@link CustomOperationWrapper} instance * @throws ClassNotFoundException */ CustomOperationWrapper newCustomOperationWrapper(CustomOperation anOperation) throws ClassNotFoundException; }