From a7c453801cb155453d18191b4c2266e5dc472192 Mon Sep 17 00:00:00 2001 From: Steve Harris Date: Thu, 8 May 2014 09:47:39 -0500 Subject: [PATCH] Omaha #3085 - re-deleted stuff that was re-added in a variety of ways. Former-commit-id: 9b4b0d5c01c9d67dd2652c144b75e223875079c3 [formerly a804a071c02ac4c2e7e9f05ee5bdd9b16076d540] [formerly ce2b030743490a502b4fdd4810c5d0899631869e] [formerly 9b4b0d5c01c9d67dd2652c144b75e223875079c3 [formerly a804a071c02ac4c2e7e9f05ee5bdd9b16076d540] [formerly ce2b030743490a502b4fdd4810c5d0899631869e] [formerly ff4a6b8122555097ac2f6fdc9efe4cbade705948 [formerly ce2b030743490a502b4fdd4810c5d0899631869e [formerly 241ca845ebcce8426bf61d730baa5e97a7762381]]]] Former-commit-id: ff4a6b8122555097ac2f6fdc9efe4cbade705948 Former-commit-id: bfd8f9b971b26beac332f0c28e3d3cc67813fda9 [formerly 532b861bce9f3506a18db9e7ce873829f1abea52] [formerly 12b7c2d1dfdafd204880707993afeebf47eefe41 [formerly 988ad59a0d20ee71a1ebac35c2f4d9c51b307f3e]] Former-commit-id: 14bc990e4d26f4fcba9b4f047441d279289dbc89 [formerly 47991060bb90204daa31965b3796af739424bda7] Former-commit-id: 77030c2fc349a2d3ec036bd5e26f92b19440462b --- .../core/reflect/BundleRepositoryGetter.java | 104 ------------------ .../res/spring/utility-common.xml | 18 --- .../IGridGeometryProviderComparable.java | 59 ---------- 3 files changed, 181 deletions(-) delete mode 100644 cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/reflect/BundleRepositoryGetter.java delete mode 100644 edexOsgi/com.raytheon.edex.utilitysrv/res/spring/utility-common.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.inventory/src/com/raytheon/uf/common/inventory/IGridGeometryProviderComparable.java diff --git a/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/reflect/BundleRepositoryGetter.java b/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/reflect/BundleRepositoryGetter.java deleted file mode 100644 index c6dc4d4d28..0000000000 --- a/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/reflect/BundleRepositoryGetter.java +++ /dev/null @@ -1,104 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.uf.viz.core.reflect; - -import java.lang.reflect.Field; - -import org.eclipse.osgi.framework.internal.core.AbstractBundle; -import org.eclipse.osgi.framework.internal.core.BundleRepository; -import org.eclipse.osgi.framework.internal.core.Framework; -import org.osgi.framework.Bundle; - -/** - * Utility class to get the BundleRepository object associated with a Bundle, to - * potentially synchronize against that object. - * - * Specifically if a call to BundleWiring.getClassLoader() is invoked on a - * thread other than main/UI thread, then there is a possible deadlock if the - * application shuts down while the BundleWiring.getClassLoader() call is still - * going. The BundleRepository of the Framework is the primary resource that is - * in contention in this deadlock scenario, due to the BundleRepository being - * used as a synchronization lock both deep in bundleWiring.getClassloader() and - * in Framework shutdown code. The other resource used as a synchronization lock - * and causing the deadlock is the BundleLoader associated with the bundle. - * - * Therefore to avoid this deadlock, if you are going to call - * BundleWiring.getClassLoader() you should attempt to get the BundleRepository - * and synchronize against it. This will ensure the call to getClassLoader() can - * finish and then release synchronization locks of both the BundleRepository - * and BundleLoader. - * - * If we fail to get the BundleRepository due to access restrictions, then you - * should proceed onwards anyway because the odds of the application shutting - * down at the same time as the call to BundleWiring.getClassLoader() is still - * running is low. Even if that occurs, the odds are further reduced that the - * two threads will synchronize against the BundleRepository at the same time - * and deadlock. - * - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * Apr 17, 2014            njensen     Initial creation
- * 
- * 
- * - * @author njensen - * @version 1.0 - */ - -public class BundleRepositoryGetter { - - private BundleRepositoryGetter() { - - } - - /** - * Attempts to retrieve the BundleRepository associated with the bundle's - * framework. Returns the BundleRepository or null if it could not be - * retrieved. - * - * @param bundle - * the bundle to retrieve the associated BundleRepository for - * @return the BundleRepository or null - */ - @SuppressWarnings("restriction") - protected static BundleRepository getFrameworkBundleRepository(Bundle bundle) { - BundleRepository bundleRepo = null; - if (bundle instanceof AbstractBundle) { - try { - AbstractBundle ab = (AbstractBundle) bundle; - Field bundleRepoField = Framework.getField(Framework.class, - BundleRepository.class, true); - bundleRepo = (BundleRepository) bundleRepoField.get(ab - .getFramework()); - } catch (Throwable t) { - // intentionally log to console and proceed anyway - t.printStackTrace(); - } - } - - return bundleRepo; - } - -} diff --git a/edexOsgi/com.raytheon.edex.utilitysrv/res/spring/utility-common.xml b/edexOsgi/com.raytheon.edex.utilitysrv/res/spring/utility-common.xml deleted file mode 100644 index 93eab522f6..0000000000 --- a/edexOsgi/com.raytheon.edex.utilitysrv/res/spring/utility-common.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.inventory/src/com/raytheon/uf/common/inventory/IGridGeometryProviderComparable.java b/edexOsgi/com.raytheon.uf.common.inventory/src/com/raytheon/uf/common/inventory/IGridGeometryProviderComparable.java deleted file mode 100644 index a0dd9ecc21..0000000000 --- a/edexOsgi/com.raytheon.uf.common.inventory/src/com/raytheon/uf/common/inventory/IGridGeometryProviderComparable.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.uf.common.inventory; - -import org.geotools.coverage.grid.GridGeometry2D; - -import com.raytheon.uf.common.geospatial.IGridGeometryProvider; - -/** - * Interace for {@link IGridGeometryProvider} that can compare itself to other - * IGridGeometryProviders and provide an intersecting IGridGeometryProvider. - * This method can be used by the {@link TimeAndSpaceMatcher} to match different - * spaces. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date          Ticket#  Engineer    Description
- * ------------- -------- ----------- --------------------------
- * Apr 11, 2014           bsteffen    Initial creation
- * 
- * 
- * - * @author bsteffen - * @version 1.0 - */ -public interface IGridGeometryProviderComparable extends IGridGeometryProvider { - - /** - * Compare another IGridGeometryProvider to this one. If the two are - * compatible return a provider that will generate a {@link GridGeometry2D} - * representing the intersection. If the two are incompatible or - * nonintersecting null should be returned to indicate no space matching is - * possible. - * - * @param other - * @return - */ - public IGridGeometryProvider compare(IGridGeometryProvider other); - -}