diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.plugin.core/src/org/eclipse/osee/framework/plugin/core/server/ClassFinder.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.plugin.core/src/org/eclipse/osee/framework/plugin/core/server/ClassFinder.java | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/plugins/org.eclipse.osee.framework.plugin.core/src/org/eclipse/osee/framework/plugin/core/server/ClassFinder.java b/plugins/org.eclipse.osee.framework.plugin.core/src/org/eclipse/osee/framework/plugin/core/server/ClassFinder.java index 20d6452dd21..2eb9a0164da 100644 --- a/plugins/org.eclipse.osee.framework.plugin.core/src/org/eclipse/osee/framework/plugin/core/server/ClassFinder.java +++ b/plugins/org.eclipse.osee.framework.plugin.core/src/org/eclipse/osee/framework/plugin/core/server/ClassFinder.java @@ -1,34 +1,34 @@ -/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.plugin.core.server;
-
-import java.io.IOException;
-import org.eclipse.osee.framework.plugin.core.util.ExportClassLoader;
-import org.osgi.framework.Bundle;
-
-public class ClassFinder extends ResourceFinder {
-
- private final ExportClassLoader loader = new ExportClassLoader();
-
- @Override
- public void dispose() {
- }
-
- @Override
- public byte[] find(String path) throws IOException {
- Bundle bundle = loader.getExportingBundle(path);
- if (bundle != null) {
- return getBytes(bundle.getResource(path).openStream());
- }
- return null;
- }
-
-}
+/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * 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: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.framework.plugin.core.server; + +import java.io.IOException; +import org.eclipse.osee.framework.plugin.core.util.ExportClassLoader; +import org.osgi.framework.Bundle; + +public class ClassFinder extends ResourceFinder { + + private final ExportClassLoader loader = new ExportClassLoader(); + + @Override + public void dispose() { + } + + @Override + public byte[] find(String path) throws IOException { + Bundle bundle = loader.getExportingBundle(path); + if (bundle != null) { + return getBytes(bundle.getResource(path).openStream()); + } + return null; + } + +} |