Example usage for com.google.gwt.core.client.impl WeakMapping set

List of usage examples for com.google.gwt.core.client.impl WeakMapping set

Introduction

In this page you can find the example usage for com.google.gwt.core.client.impl WeakMapping set.

Prototype

public static void set(Object instance, String key, Object value) 

Source Link

Document

Associates a value with a given key in the (key, value) mapping associated with the given Object instance.

Usage

From source file:com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.java

License:Apache License

public T unwrap() {
    if (usingSimplePeer) {
        throw new IllegalStateException();
    }//from  w w  w  .  j ava  2 s. co  m
    try {
        WeakMapping.set(wrapped, AutoBean.class.getName(), null);
        return wrapped;
    } finally {
        wrapped = null;
    }
}

From source file:de.csenk.gwt.commons.bean.shared.observe.impl.AbstractObservableBean.java

License:Apache License

/**
 * @param observed/*from www.  j a  v a2 s.  c om*/
 */
protected AbstractObservableBean(T observed) {
    this.observed = observed;
    WeakMapping.set(observed, ObservableBean.class.getName(), this);
}