From f7b8de3b9c6fa990fcaf32f2004cebd29af3d463 Mon Sep 17 00:00:00 2001 From: Daniel Nordhoff-Vergien Date: Fri, 3 Feb 2017 13:26:55 +0100 Subject: [PATCH] #42 remove not used classes --- .../generator/DefaultCodeGenerator.java | 13 +----- .../templates/BusinessException.template | 41 ------------------- .../templates/TechnicalException.template | 41 ------------------- 3 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/BusinessException.template delete mode 100644 VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/TechnicalException.template diff --git a/VaadinatorTooling/VaadinatorGenerator/src/main/java/de/akquinet/engineering/vaadinator/generator/DefaultCodeGenerator.java b/VaadinatorTooling/VaadinatorGenerator/src/main/java/de/akquinet/engineering/vaadinator/generator/DefaultCodeGenerator.java index 90caaf9..9816291 100644 --- a/VaadinatorTooling/VaadinatorGenerator/src/main/java/de/akquinet/engineering/vaadinator/generator/DefaultCodeGenerator.java +++ b/VaadinatorTooling/VaadinatorGenerator/src/main/java/de/akquinet/engineering/vaadinator/generator/DefaultCodeGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2014, 2016 Daniel Norhoff-Vergien and akquinet engineering GmbH + * Copyright 2014, 2016, 2017 Daniel Norhoff-Vergien and akquinet engineering GmbH * * 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 @@ -154,17 +154,6 @@ public void generateCode(VaadinatorConfig vaadinatorConfig) throws IOException { vaadinatorConfig.getBasePckg() + ".ui.view", "DefaultButtonFactory", ".java"), TEMPLATE_PACKAGE, log); } - // auch für Service-Layer - if (vaadinatorConfig.isHasDisplayBeans() || vaadinatorConfig.isHasServiceBeans()) { - runVelocity(null, vaadinatorConfig.getCommonMap(), vaadinatorConfig.getBasePckg(), null, null, null, - null, "BusinessException.template", packageToFile(vaadinatorConfig.getTargetFolderSrcStart(), - vaadinatorConfig.getBasePckg(), "BusinessException", ".java"), - TEMPLATE_PACKAGE, log); - runVelocity(null, vaadinatorConfig.getCommonMap(), vaadinatorConfig.getBasePckg(), null, null, null, - null, "TechnicalException.template", packageToFile(vaadinatorConfig.getTargetFolderSrcStart(), - vaadinatorConfig.getBasePckg(), "TechnicalException", ".java"), - TEMPLATE_PACKAGE, log); - } // wenn wir Basis generieren wollen auch das Folgende: if (vaadinatorConfig.isHasDisplayBeans() && vaadinatorConfig.isGenServletBase()) { runVelocity(null, vaadinatorConfig.getCommonMap(), vaadinatorConfig.getBasePckg(), null, null, null, diff --git a/VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/BusinessException.template b/VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/BusinessException.template deleted file mode 100644 index 8af3ba6..0000000 --- a/VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/BusinessException.template +++ /dev/null @@ -1,41 +0,0 @@ -#* -Copyright 2014 akquinet engineering GmbH - -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 ${common.basePackage}; - -public class BusinessException extends RuntimeException { - - /** - * - */ - private static final long serialVersionUID = 1L; - - public BusinessException() { - super(); - } - - public BusinessException(String message) { - super(message); - } - - public BusinessException(Throwable cause) { - super(cause); - } - - public BusinessException(String message, Throwable cause) { - super(message, cause); - } - -} diff --git a/VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/TechnicalException.template b/VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/TechnicalException.template deleted file mode 100644 index added47..0000000 --- a/VaadinatorTooling/VaadinatorTemplatesCommon/src/main/resources/de/akquinet/engineering/vaadinator/templates/TechnicalException.template +++ /dev/null @@ -1,41 +0,0 @@ -#* -Copyright 2014 akquinet engineering GmbH - -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 ${common.basePackage}; - -public class TechnicalException extends RuntimeException { - - /** - * - */ - private static final long serialVersionUID = 1L; - - public TechnicalException() { - super(); - } - - public TechnicalException(String message) { - super(message); - } - - public TechnicalException(Throwable cause) { - super(cause); - } - - public TechnicalException(String message, Throwable cause) { - super(message, cause); - } - -}