import java.util.StringTokenizer;
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.manager.Manageable;
+import org.mxchange.jcore.facade.Facade;
/**
* General class
/**
* Manager instance
*/
- private Manageable manager;
+ private Facade facade;
/**
* Initialize object
}
@Override
- public Manageable getManager () {
- return this.manager;
+ public Facade getFacade () {
+ return this.facade;
}
/**
* Manager instance
* <p>
- * @param manager the manager instance to set
+ * @param facade the facade instance to set
*/
- protected void setManager (final Manageable manager) {
- this.manager = manager;
+ protected void setFacade (final Facade facade) {
+ this.facade = facade;
}
@Override
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.manager.Manageable;
+import org.mxchange.jcore.facade.Facade;
/**
* A general interface which should be always expanded
* <p>
* @return Manager instance
*/
- public Manageable getManager ();
+ public Facade getFacade ();
/**
* Getter for human-readable string from given key
this.disableIsRunning();
// Shuts down contact manager
- this.getManager().doShutdown();
+ this.getFacade().doShutdown();
}
@Override
--- /dev/null
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcore.facade;
+
+import org.mxchange.jcore.BaseFrameworkSystem;
+
+/**
+ * A general manager
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ * @version 0.0
+ */
+public abstract class BaseFacade extends BaseFrameworkSystem implements Facade {
+
+ /**
+ * No instances can be created of this class
+ */
+ protected BaseFacade () {
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcore.facade;
+
+import java.io.IOException;
+import java.sql.SQLException;
+import org.mxchange.jcore.FrameworkInterface;
+
+/**
+ * A general interface for any kind of facade classes
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface Facade extends FrameworkInterface {
+
+ /**
+ * Shuts down this facade
+ * <p>
+ * @throws java.sql.SQLException If an SQL error occurs
+ * @throws java.io.IOException If an IO error occurs
+ */
+ public void doShutdown () throws SQLException, IOException;
+}
+++ /dev/null
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcore.manager;
-
-import org.mxchange.jcore.BaseFrameworkSystem;
-
-/**
- * A general manager
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- * @version 0.0
- */
-public abstract class BaseManager extends BaseFrameworkSystem implements Manageable {
-
- /**
- * No instances can be created of this class
- */
- protected BaseManager () {
- }
-}
+++ /dev/null
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcore.manager;
-
-import java.io.IOException;
-import java.sql.SQLException;
-import org.mxchange.jcore.FrameworkInterface;
-
-/**
- * A general interface for any kind of manager classes
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- */
-public interface Manageable extends FrameworkInterface {
-
- /**
- * Shuts down this contact manager
- * <p>
- * @throws java.sql.SQLException If an SQL error occurs
- * @throws java.io.IOException If an IO error occurs
- */
- public void doShutdown () throws SQLException, IOException;
-}
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.exceptions.MenuInitializationException;
-import org.mxchange.jcore.manager.BaseManager;
+import org.mxchange.jcore.facade.BaseFacade;
/**
* Application manager
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
-public class ApplicationManager extends BaseManager implements ManageableApplication {
+public class ApplicationManager extends BaseFacade implements ManageableApplication {
/**
* Self instance of this manager
package org.mxchange.jcore.manager.application;
import org.mxchange.jcore.exceptions.MenuInitializationException;
-import org.mxchange.jcore.manager.Manageable;
+import org.mxchange.jcore.facade.Facade;
/**
* An interface for application manager
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
-public interface ManageableApplication extends Manageable {
+public interface ManageableApplication extends Facade {
/**
* Launches application