Initial commit from SVN.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2004,2007 Declarative Engineering LLC.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Declarative Engineering LLC
|
||||
* verson 1 which accompanies this distribution, and is available at
|
||||
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
||||
*/
|
||||
package com.foundation.view.application;
|
||||
|
||||
import com.foundation.application.Application;
|
||||
|
||||
/**
|
||||
* This is just a place holder for the real application instance. The real application should set the singleton defined here.
|
||||
*/
|
||||
public abstract class BuilderApplication extends Application {
|
||||
private static IBuilderApplication singleton = null;
|
||||
/**
|
||||
* BuilderApplication constructor.
|
||||
*/
|
||||
private BuilderApplication() {
|
||||
super();
|
||||
}//BuilderApplication()//
|
||||
/**
|
||||
* Gets the one and only builder application instance.
|
||||
* @return The builder application.
|
||||
*/
|
||||
public static IBuilderApplication getSingleton() {
|
||||
return singleton;
|
||||
}//getSingleton()//
|
||||
/**
|
||||
* Sets the one and only builder application instance.
|
||||
* Note that this is not a thread safe call and should be called inside the real application classes' static initializer.
|
||||
* @param singleton The one and only instance of the builder application.
|
||||
*/
|
||||
public static void setSingleton(IBuilderApplication _singleton) {
|
||||
if(singleton == null) {
|
||||
singleton = _singleton;
|
||||
}//if//
|
||||
}//setSingleton()//
|
||||
}//BuilderApplication//
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2004,2009 Declarative Engineering LLC.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Declarative Engineering LLC
|
||||
* verson 1 which accompanies this distribution, and is available at
|
||||
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
||||
*/
|
||||
package com.foundation.view.application;
|
||||
|
||||
public interface IBuilderApplication extends com.foundation.application.IApplication {
|
||||
}//IBuilderApplication//
|
||||
Reference in New Issue
Block a user