Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryDescriptor.java')
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryDescriptor.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryDescriptor.java b/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryDescriptor.java
deleted file mode 100644
index 64a2fc7af..000000000
--- a/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryDescriptor.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.wsdl.internal.extensibility;
-
-import org.eclipse.wst.wsdl.util.ExtensibilityElementFactory;
-import org.osgi.framework.Bundle;
-
-public class ExtensibilityElementFactoryDescriptor
-{
- private final static String CLASS_LOADING_ERROR = "CLASS_LOADING_ERROR";
-
- protected Bundle bundle;
- protected String namespace;
- protected String className;
- protected Object factory;
-
- public ExtensibilityElementFactoryDescriptor(String className, String namespace, Bundle bundle)
- {
- this.bundle = bundle;
- this.className = className;
- this.namespace = namespace;
- }
-
- public ExtensibilityElementFactory getExtensiblityElementFactory()
- {
- if (factory == null)
- {
- try
- {
- Class theClass = bundle.loadClass(className);
- factory = (ExtensibilityElementFactory)theClass.newInstance();
- }
- catch (Exception e)
- {
- factory = CLASS_LOADING_ERROR;
- e.printStackTrace();
- }
- }
- return factory != CLASS_LOADING_ERROR ? (ExtensibilityElementFactory)factory : null;
- }
-
- public void setExtensiblityElementFactory(ExtensibilityElementFactory factory)
- {
- this.factory = factory;
- }
-} \ No newline at end of file

Back to the top