From: Roland Haeder Date: Fri, 2 Oct 2015 07:49:36 +0000 (+0200) Subject: Renaming season: renamed manager -> facade X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4907fc6492ee5ce6a2aa1685b22290c41f63c30b;p=jcore.git Renaming season: renamed manager -> facade Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index 2656f85..0dd6a56 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -20,7 +20,7 @@ import java.util.ResourceBundle; 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 @@ -52,7 +52,7 @@ public abstract class BaseFrameworkSystem implements FrameworkInterface { /** * Manager instance */ - private Manageable manager; + private Facade facade; /** * Initialize object @@ -154,17 +154,17 @@ public abstract class BaseFrameworkSystem implements FrameworkInterface { } @Override - public Manageable getManager () { - return this.manager; + public Facade getFacade () { + return this.facade; } /** * Manager instance *

- * @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 diff --git a/src/org/mxchange/jcore/FrameworkInterface.java b/src/org/mxchange/jcore/FrameworkInterface.java index 1c02de6..2a9a6bd 100644 --- a/src/org/mxchange/jcore/FrameworkInterface.java +++ b/src/org/mxchange/jcore/FrameworkInterface.java @@ -18,7 +18,7 @@ package org.mxchange.jcore; 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 @@ -51,7 +51,7 @@ public interface FrameworkInterface { *

* @return Manager instance */ - public Manageable getManager (); + public Facade getFacade (); /** * Getter for human-readable string from given key diff --git a/src/org/mxchange/jcore/client/BaseClient.java b/src/org/mxchange/jcore/client/BaseClient.java index b8567c3..945a0df 100644 --- a/src/org/mxchange/jcore/client/BaseClient.java +++ b/src/org/mxchange/jcore/client/BaseClient.java @@ -44,7 +44,7 @@ public abstract class BaseClient extends BaseFrameworkSystem implements Client { this.disableIsRunning(); // Shuts down contact manager - this.getManager().doShutdown(); + this.getFacade().doShutdown(); } @Override diff --git a/src/org/mxchange/jcore/facade/BaseFacade.java b/src/org/mxchange/jcore/facade/BaseFacade.java new file mode 100644 index 0000000..9e7c169 --- /dev/null +++ b/src/org/mxchange/jcore/facade/BaseFacade.java @@ -0,0 +1,34 @@ +/* + * 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 . + */ +package org.mxchange.jcore.facade; + +import org.mxchange.jcore.BaseFrameworkSystem; + +/** + * A general manager + *

+ * @author Roland Haeder + * @version 0.0 + */ +public abstract class BaseFacade extends BaseFrameworkSystem implements Facade { + + /** + * No instances can be created of this class + */ + protected BaseFacade () { + } +} diff --git a/src/org/mxchange/jcore/facade/Facade.java b/src/org/mxchange/jcore/facade/Facade.java new file mode 100644 index 0000000..315329c --- /dev/null +++ b/src/org/mxchange/jcore/facade/Facade.java @@ -0,0 +1,37 @@ +/* + * 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 . + */ +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 + *

+ * @author Roland Haeder + */ +public interface Facade extends FrameworkInterface { + + /** + * Shuts down this facade + *

+ * @throws java.sql.SQLException If an SQL error occurs + * @throws java.io.IOException If an IO error occurs + */ + public void doShutdown () throws SQLException, IOException; +} diff --git a/src/org/mxchange/jcore/manager/BaseManager.java b/src/org/mxchange/jcore/manager/BaseManager.java deleted file mode 100644 index 3445f98..0000000 --- a/src/org/mxchange/jcore/manager/BaseManager.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 . - */ -package org.mxchange.jcore.manager; - -import org.mxchange.jcore.BaseFrameworkSystem; - -/** - * A general manager - *

- * @author Roland Haeder - * @version 0.0 - */ -public abstract class BaseManager extends BaseFrameworkSystem implements Manageable { - - /** - * No instances can be created of this class - */ - protected BaseManager () { - } -} diff --git a/src/org/mxchange/jcore/manager/Manageable.java b/src/org/mxchange/jcore/manager/Manageable.java deleted file mode 100644 index 5213c74..0000000 --- a/src/org/mxchange/jcore/manager/Manageable.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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 . - */ -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 - *

- * @author Roland Haeder - */ -public interface Manageable extends FrameworkInterface { - - /** - * Shuts down this contact manager - *

- * @throws java.sql.SQLException If an SQL error occurs - * @throws java.io.IOException If an IO error occurs - */ - public void doShutdown () throws SQLException, IOException; -} diff --git a/src/org/mxchange/jcore/manager/application/ApplicationManager.java b/src/org/mxchange/jcore/manager/application/ApplicationManager.java index c20012b..fc988e5 100644 --- a/src/org/mxchange/jcore/manager/application/ApplicationManager.java +++ b/src/org/mxchange/jcore/manager/application/ApplicationManager.java @@ -18,14 +18,14 @@ package org.mxchange.jcore.manager.application; 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 *

* @author Roland Haeder */ -public class ApplicationManager extends BaseManager implements ManageableApplication { +public class ApplicationManager extends BaseFacade implements ManageableApplication { /** * Self instance of this manager diff --git a/src/org/mxchange/jcore/manager/application/ManageableApplication.java b/src/org/mxchange/jcore/manager/application/ManageableApplication.java index 9c91fe7..b2a8d3a 100644 --- a/src/org/mxchange/jcore/manager/application/ManageableApplication.java +++ b/src/org/mxchange/jcore/manager/application/ManageableApplication.java @@ -17,14 +17,14 @@ 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 *

* @author Roland Haeder */ -public interface ManageableApplication extends Manageable { +public interface ManageableApplication extends Facade { /** * Launches application