summaryrefslogtreecommitdiff
path: root/java/src/Freeze/Application.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/Freeze/Application.java')
-rw-r--r--java/src/Freeze/Application.java82
1 files changed, 0 insertions, 82 deletions
diff --git a/java/src/Freeze/Application.java b/java/src/Freeze/Application.java
deleted file mode 100644
index 3bbf724fa81..00000000000
--- a/java/src/Freeze/Application.java
+++ /dev/null
@@ -1,82 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003
-// ZeroC, Inc.
-// Billerica, MA, USA
-//
-// All Rights Reserved.
-//
-// Ice is free software; you can redistribute it and/or modify it under
-// the terms of the GNU General Public License version 2 as published by
-// the Free Software Foundation.
-//
-// **********************************************************************
-
-package Freeze;
-
-public abstract class Application extends Ice.Application
-{
- public
- Application(String dbEnvName)
- {
- _dbEnvName = dbEnvName;
- }
-
- public int
- run(String[] args)
- {
- int status;
- DBEnvironment dbEnv = null;
-
- try
- {
- dbEnv = Freeze.Util.initialize(communicator(), _dbEnvName);
- status = runFreeze(args, dbEnv);
- }
- catch(DBException ex)
- {
- System.err.println(appName() + ": " + ex + ": " + ex.message);
- status = 1;
- }
- catch(Ice.LocalException ex)
- {
- System.err.println(appName() + ": " + ex);
- ex.printStackTrace();
- status = 1;
- }
- catch(Exception ex)
- {
- System.err.println(appName() + ": unknown exception");
- ex.printStackTrace();
- status = 1;
- }
-
- if(dbEnv != null)
- {
- try
- {
- dbEnv.close();
- }
- catch(DBException ex)
- {
- System.err.println(appName() + ": " + ex + ": " + ex.message);
- ex.printStackTrace();
- status = 1;
- }
- catch(Exception ex)
- {
- System.err.println(appName() + ": unknown exception");
- ex.printStackTrace();
- status = 1;
- }
- dbEnv = null;
- }
-
- return status;
- }
-
- public abstract int
- runFreeze(String[] args, DBEnvironment dbEnv);
-
- private String _dbEnvName;
-}