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

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

Introduction

In this page you can find the example usage for org.springframework.batch.core.scope.context JobContext 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.JobScope.java

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