Example usage for org.springframework.batch.core.scope.context StepContext removeAttribute

List of usage examples for org.springframework.batch.core.scope.context StepContext removeAttribute

Introduction

In this page you can find the example usage for org.springframework.batch.core.scope.context StepContext removeAttribute.

Prototype

@Override
@Nullable
public Object removeAttribute(String name) 

Source Link

Document

Override base class behaviour to ensure destruction callbacks are unregistered as well as the default behaviour.

Usage

From source file:org.springframework.batch.core.scope.StepScope.java

/**
 * @see Scope#remove(String)/*w  w  w . j a  v  a  2  s  .c  o m*/
 */
@Override
public Object remove(String name) {
    StepContext context = getContext();
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("Removing from scope=%s, name=%s", this.getName(), name));
    }
    return context.removeAttribute(name);
}