/** * For backward compatibility with the previous string based mode * This is needed for microcontainer as it gets confused with overloaded * setters. * @param name - the string form of the mode enum */ public void setBlockingModeString(String name) { blockingMode = BlockingMode.toBlockingMode(name); if( blockingMode == null ) blockingMode = BlockingMode.ABORT; }
/** * For backward compatibility with the previous string based mode * @param name - the string form of the mode enum */ public void setBlockingMode(String name) { blockingMode = BlockingMode.toBlockingMode(name); if( blockingMode == null ) blockingMode = BlockingMode.ABORT; }
/** * Returns a BlockingMode for the input object converted to a string. * * @return a BlockingMode enum instance * */ public Object getValue() { String text = getAsText(); BlockingMode mode = BlockingMode.toBlockingMode(text); return mode; } }