Search in sources :

Example 36 with SharedClassHelperFactory

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

the class CustomURLClassLoader 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 37 with SharedClassHelperFactory

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

the class CustomPartitioningURLClassLoader method getHelper.

public boolean getHelper() {
    SharedClassHelperFactory schFactory = Shared.getSharedClassHelperFactory();
    SharedClassURLClasspathHelper newHelper = null;
    try {
        newHelper = schFactory.getURLClasspathHelper(this, orgUrls);
    } catch (HelperAlreadyDefinedException e) {
        return false;
    }
    if (newHelper.equals(scHelper)) {
        return true;
    } else {
        return false;
    }
}
Also used : HelperAlreadyDefinedException(com.ibm.oti.shared.HelperAlreadyDefinedException) SharedClassHelperFactory(com.ibm.oti.shared.SharedClassHelperFactory) SharedClassURLClasspathHelper(com.ibm.oti.shared.SharedClassURLClasspathHelper)

Example 38 with SharedClassHelperFactory

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

the class CustomPartitioningURLClassLoader method getHelper.

public void getHelper(URL[] urls) 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 39 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)

Example 40 with SharedClassHelperFactory

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

the class CustomURLClassLoaderNonConfirming method getHelper.

public void getHelper(URL[] urls) 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)

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