Example usage for com.vaadin.client.metadata Type Type

List of usage examples for com.vaadin.client.metadata Type Type

Introduction

In this page you can find the example usage for com.vaadin.client.metadata Type Type.

Prototype

public Type(String baseTypeName, Type[] parameterTypes) 

Source Link

Usage

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;
}