Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.litesoft.sandbox.infrastructure.client;

import com.google.gwt.place.shared.*;
import com.google.gwt.user.client.ui.*;

public abstract class CachedViewSynchronousActivityFactory<CommonActivityParam extends CommonActivityParameter, View extends IsWidget, APlace extends Place> implements ActivityFactory.Synchronous<CommonActivityParam, View, APlace>
{
    private View mCachedView;

    @Override
    public synchronized final View getView()
    {
        if ( mCachedView == null )
        {
            mCachedView = createView();
        }
        return mCachedView;
    }

    abstract protected View createView();
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModule/common/src/org/litesoft/sandbox/infrastructure/client/CachedViewSynchronousActivityFactory.java

Diff revisions: vs.
Revision Author Commited Message
540 GeorgeS picture GeorgeS Mon 03 Oct, 2011 04:22:28 +0000