001/*
002 * The contents of this file are subject to the license and copyright
003 * detailed in the LICENSE and NOTICE files at the root of the source
004 * tree.
005 */
006
007package org.fcrepo.kernel.impl.operations;
008
009import org.fcrepo.kernel.api.Transaction;
010import org.fcrepo.kernel.api.identifiers.FedoraId;
011import org.fcrepo.kernel.api.operations.CreateVersionResourceOperationBuilder;
012import org.fcrepo.kernel.api.operations.VersionResourceOperationFactory;
013import org.springframework.stereotype.Component;
014
015/**
016 * Default impl of {@link VersionResourceOperationFactory}
017 *
018 * @author pwinckles
019 */
020@Component
021public class VersionResourceOperationFactoryImpl implements VersionResourceOperationFactory {
022
023    @Override
024    public CreateVersionResourceOperationBuilder createBuilder(final Transaction transaction, final FedoraId rescId) {
025        return new CreateVersionResourceOperationBuilderImpl(transaction, rescId);
026    }
027
028}