Package org.drools.grid.internal.commands

Source Code of org.drools.grid.internal.commands.UnRegisterCommand

package org.drools.grid.internal.commands;

import org.drools.command.Context;
import org.drools.command.impl.GenericCommand;
import org.drools.grid.io.impl.NodeData;

public class UnRegisterCommand
    implements
    GenericCommand<Void> {

    private String identifier;

    public UnRegisterCommand(String identifier) {
        this.identifier = identifier;

    }

    public Void execute(Context context) {
        NodeData data = (NodeData) context.get( NodeData.NODE_DATA );

        data.getRoot().remove( this.identifier );

        return null;
    }

}
TOP

Related Classes of org.drools.grid.internal.commands.UnRegisterCommand

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.