mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
16.46.2013 6b2141405094a1bbe9c133092244bf6f54a30b72
opends/src/server/org/opends/server/core/OperationWrapper.java
@@ -38,13 +38,16 @@
/**
 * This abstract class is a generic operation wrapper intended to be
 * subclassed by a specific operation wrapper.
 * This abstract class is a generic operation wrapper intended to be subclassed
 * by a specific operation wrapper.
 *
 * @param <W>
 *          the type of the object wrapped by this class
 */
public class OperationWrapper implements Operation
public class OperationWrapper<W extends Operation> implements Operation
{
  /** The wrapped operation. */
  private Operation operation;
  private W operation;
  /**
@@ -52,7 +55,7 @@
   *
   * @param operation  the generic operation to wrap
   */
  public OperationWrapper(Operation operation)
  public OperationWrapper(W operation)
  {
    this.operation = operation;
  }
@@ -234,6 +237,16 @@
  }
  /**
   * Returns the wrapped {@link Operation}.
   *
   * @return the wrapped {@link Operation}.
   */
  protected W getOperation()
  {
    return operation;
  }
  /**
   * {@inheritDoc}
   */
  @Override