Search in sources :

Example 21 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory in project openj9 by eclipse.

the class CustomPartitioningURLLoader method getHelper.

public boolean getHelper() {
    SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
    SharedClassURLHelper newHelper = null;
    try {
        newHelper = schFactory.getURLHelper(this);
    } catch (Exception e) {
        return false;
    }
    if (newHelper.equals(scHelper)) {
        return true;
    } else {
        return false;
    }
}
Also used : SharedClassURLHelper(com.ibm.oti.shared.SharedClassURLHelper) SharedClassHelperFactory(com.ibm.oti.shared.SharedClassHelperFactory) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) HelperAlreadyDefinedException(com.ibm.oti.shared.HelperAlreadyDefinedException)

Example 22 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory in project openj9 by eclipse.

the class CustomURLClassLoader method getURLHelper.

public void getURLHelper() throws Exception {
    SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
    SharedClassURLHelper newHelper = null;
    newHelper = schFactory.getURLHelper(this);
}
Also used : SharedClassURLHelper(com.ibm.oti.shared.SharedClassURLHelper) SharedClassHelperFactory(com.ibm.oti.shared.SharedClassHelperFactory)

Example 23 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory in project openj9 by eclipse.

the class CustomURLLoader method getURLClasspathHelper.

public void getURLClasspathHelper() throws HelperAlreadyDefinedException {
    SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
    SharedClassURLClasspathHelper newHelper = null;
    newHelper = schFactory.getURLClasspathHelper(this, urls);
}
Also used : SharedClassHelperFactory(com.ibm.oti.shared.SharedClassHelperFactory) SharedClassURLClasspathHelper(com.ibm.oti.shared.SharedClassURLClasspathHelper)

Example 24 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory in project openj9 by eclipse.

the class CustomURLLoader method getTokenHelper.

public void getTokenHelper() throws Exception {
    SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
    SharedClassTokenHelper newHelper = null;
    newHelper = schFactory.getTokenHelper(this);
}
Also used : SharedClassHelperFactory(com.ibm.oti.shared.SharedClassHelperFactory) SharedClassTokenHelper(com.ibm.oti.shared.SharedClassTokenHelper)

Example 25 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory in project openj9 by eclipse.

the class CustomURLLoader method getHelper.

public boolean getHelper() {
    SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
    SharedClassURLHelper newHelper = null;
    try {
        newHelper = schFactory.getURLHelper(this);
    } catch (Exception e) {
        return false;
    }
    if (newHelper.equals(scHelper)) {
        return true;
    } else {
        return false;
    }
}
Also used : SharedClassURLHelper(com.ibm.oti.shared.SharedClassURLHelper) SharedClassHelperFactory(com.ibm.oti.shared.SharedClassHelperFactory) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) HelperAlreadyDefinedException(com.ibm.oti.shared.HelperAlreadyDefinedException)

Aggregations

SharedClassHelperFactory (com.ibm.oti.shared.SharedClassHelperFactory)53 SharedClassURLClasspathHelper (com.ibm.oti.shared.SharedClassURLClasspathHelper)25 HelperAlreadyDefinedException (com.ibm.oti.shared.HelperAlreadyDefinedException)17 SharedClassTokenHelper (com.ibm.oti.shared.SharedClassTokenHelper)14 SharedClassURLHelper (com.ibm.oti.shared.SharedClassURLHelper)14 IOException (java.io.IOException)6 MalformedURLException (java.net.MalformedURLException)6 CustomURLClassLoader (CustomCLs.CustomURLClassLoader)3 URLClassPathCreator (Utilities.URLClassPathCreator)3 Method (java.lang.reflect.Method)3 CannotSetClasspathException (com.ibm.oti.shared.CannotSetClasspathException)1