List of usage examples for com.vaadin.client.metadata Type Type
public Type(String baseTypeName, Type[] parameterTypes)
From source file:org.vaadin.alump.offlinebuilder.client.offline.OfflineFactory.java
License:Open Source License
protected SharedState decodeState(JSONValue jsonState, SharedState state, ApplicationConnection connection) { SharedState ret;//from www . j a va 2 s .c o m try { ret = (SharedState) JsonDecoder.decodeValue(new Type(state.getClass().getName(), null), jsonState, state, connection); } catch (Exception e) { logger.log(Level.SEVERE, "JSON State decoding exception", e); logger.warning("Failed to decode state of component with JSON: " + jsonState.toString()); ret = null; } return ret; }