/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.apache.apex.common.util;

import org.apache.apex.api.plugin.DAGSetupPlugin;
import org.apache.hadoop.classification.InterfaceStability;

/**
 * Base class for DAGSetupPlugin implementations that provides empty implementations
 * for all interface methods.
 */
@InterfaceStability.Evolving
public class BaseDAGSetupPlugin implements DAGSetupPlugin
{
  @Override
  public void setup(DAGSetupPluginContext context)
  {

  }

  @Override
  public void prePopulateDAG()
  {

  }

  @Override
  public void teardown()
  {

  }

  @Override
  public void postPopulateDAG()
  {

  }

  @Override
  public void preConfigureDAG()
  {

  }

  @Override
  public void postConfigureDAG()
  {

  }

  @Override
  public void preValidateDAG()
  {

  }

  @Override
  public void postValidateDAG()
  {

  }
}
