ServiceProfilingAdapter.java :  » GWT » kiyaa » com » habitsoft » kiyaa » util » Java Open Source

Java Open Source » GWT » kiyaa 
kiyaa » com » habitsoft » kiyaa » util » ServiceProfilingAdapter.java
package com.habitsoft.kiyaa.util;

/**
 * Marker class for a generator that allows you to
 * output the ms taken to run each async call to the
 * given RemoteService.
 * 
 * Example use:
 * 
 * class MyServiceProfilingAdapter implements ServiceProfilingAdapter<MyServiceAsync> { }
 * 
 * public void startProfiling() {
 *      MyServiceProfilingAdapter profiling = GWT.create(MyServiceProfilingAdapter.class);
 *      MyServiceAsync service = GWT.create(MyService.class);
 *      service = profiling.getProxy(service);
 * }
 */
public interface ServiceProfilingAdapter<T> {
    /**
     * This method wraps the given instance in a profiling
     * implementation.
     */
    public T getProxy(T delegate);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.