org.squirrelframework.foundation.fsm.StringConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-foundation Show documentation
Show all versions of squirrel-foundation Show documentation
foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.
package org.squirrelframework.foundation.fsm;
import org.squirrelframework.foundation.component.SquirrelProvider;
public interface StringConverter extends Converter {
public static final Converter INSTANCE = SquirrelProvider.getInstance().newInstance(StringConverterImpl.class);
class StringConverterImpl implements StringConverter {
private StringConverterImpl() {}
@Override
public String convertToString(String obj) {
return obj;
}
@Override
public String convertFromString(String name) {
return name;
}
}
}