com.jk.application.api.ApplicationSuperFactory Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2002-2016 Jalal Kiswani.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jk.application.api;
import java.io.InputStream;
import com.jk.application.impl.DefaultApplicationSuperFactory;
import com.jk.application.reports.Paramter;
import com.jk.application.reports.Report;
import com.jk.application.reports.ReportManager;
import com.jk.application.ui.UIWidgetFactory;
import com.jk.db.datasource.JKDataSource;
import com.jk.db.dynamic.meta.EntityMetaFactory;
/**
* A factory for creating Application objects.
*/
public abstract class ApplicationSuperFactory {
protected static ApplicationSuperFactory instance;
public static void setInstance(ApplicationSuperFactory instance) {
ApplicationSuperFactory.instance = instance;
}
public static ApplicationSuperFactory getInstance() {
if (instance == null) {
instance=new DefaultApplicationSuperFactory();
}
return instance;
}
/**
* Creates a new Application object.
*
* @param in
* the in
* @return the report manager
*/
public abstract ReportManager createReportManager(InputStream in);
/**
* Gets the UI widget factory.
*
* @return the UI widget factory
*/
public abstract UIWidgetFactory getUIWidgetFactory();
/**
* Creates a new Application object.
*
* @return the application
*/
public abstract Application createApplication();
/**
* Creates a new Application object.
*
* @return the module
*/
public abstract Module createModule();
/**
* Gets the default application.
*
* @return the default application
*/
public abstract Application getDefaultApplication();
/**
* Gets the report manager.
*
* @return the report manager
*/
public abstract ReportManager getReportManager();
/**
* Gets the application manager.
*
* @return the application manager
*/
public abstract ApplicationManager getApplicationManager();
/**
* Creates a new Application object.
*
* @return the menu item
*/
public abstract MenuItem createMenuItem();
/**
* Creates a new Application object.
*
* @return the menu
*/
public abstract Menu createMenu();
public abstract Report createReport();
public abstract Paramter createReportParamter();
public abstract EntityMetaFactory getDefaultEntityMetaFactory();
public abstract EntityMetaFactory getEntityMetaFactory(JKDataSource dataSource);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy