Kaydet (Commit) 462f3d3f authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS sb20 (1.13.100); FILE MERGED

2004/06/14 11:26:47 sb 1.13.100.1: #i29119# Replaced sandbox.jar-based class loader with an own one.
üst bac4c735
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: JavaLoader.java,v $ * $RCSfile: JavaLoader.java,v $
* *
* $Revision: 1.13 $ * $Revision: 1.14 $
* *
* last change: $Author: vg $ $Date: 2003-05-26 08:40:06 $ * last change: $Author: rt $ $Date: 2004-07-23 14:43:37 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -108,7 +108,7 @@ import java.net.MalformedURLException; ...@@ -108,7 +108,7 @@ import java.net.MalformedURLException;
* service. Therefor the <code>JavaLoader</code> activates external UNO components which are implemented in Java. * service. Therefor the <code>JavaLoader</code> activates external UNO components which are implemented in Java.
* The loader is used by the <code>ServiceManger</code>. * The loader is used by the <code>ServiceManger</code>.
* <p> * <p>
* @version $Revision: 1.13 $ $ $Date: 2003-05-26 08:40:06 $ * @version $Revision: 1.14 $ $ $Date: 2004-07-23 14:43:37 $
* @author Markus Herzog * @author Markus Herzog
* @see com.sun.star.loader.XImplementationLoader * @see com.sun.star.loader.XImplementationLoader
* @see com.sun.star.loader.Java * @see com.sun.star.loader.Java
...@@ -323,9 +323,8 @@ public class JavaLoader implements XImplementationLoader, ...@@ -323,9 +323,8 @@ public class JavaLoader implements XImplementationLoader,
// Normally a string must no be null. // Normally a string must no be null.
try { try {
if ( locationUrl != null ) { if ( locationUrl != null ) {
RegistrationClassFinder classFinder = new RegistrationClassFinder( locationUrl );
// 1. // 1.
clazz = classFinder.getRegistrationClass(); clazz = RegistrationClassFinder.find( locationUrl );
} }
else { else {
// 2. // 2.
...@@ -462,9 +461,7 @@ public class JavaLoader implements XImplementationLoader, ...@@ -462,9 +461,7 @@ public class JavaLoader implements XImplementationLoader,
try { try {
RegistrationClassFinder classFinder = Class clazz = RegistrationClassFinder.find(locationUrl);
new RegistrationClassFinder(locationUrl);
Class clazz = classFinder.getRegistrationClass();
if (null == clazz) if (null == clazz)
{ {
throw new CannotRegisterImplementationException( throw new CannotRegisterImplementationException(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment