Package org.jibeframework.core.ui.wrapper.mapprocessor

Source Code of org.jibeframework.core.ui.wrapper.mapprocessor.ExtendedMapWrapperPreprocessor

/**
*
*/
package org.jibeframework.core.ui.wrapper.mapprocessor;

import org.jibeframework.core.ui.wrapper.ExtendedMapWrapper;
import org.jibeframework.core.ui.wrapper.MapWrapper;

public class ExtendedMapWrapperPreprocessor implements MapWrapperPreprocessor {

  public boolean applies(MapWrapper wrapper) {
    return wrapper.getConfig().containsKey("jextend");
  }

  public MapWrapper process(MapWrapper wrapper) {
    String extend = (String) wrapper.getConfig().remove("jextend");
    ExtendedMapWrapper ext = new ExtendedMapWrapper(extend, wrapper);
    return ext;
  }

}
TOP

Related Classes of org.jibeframework.core.ui.wrapper.mapprocessor.ExtendedMapWrapperPreprocessor

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.