Search in sources :

Example 21 with SharedClassURLClasspathHelper

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

the class CustomPartitioningURLCL 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 22 with SharedClassURLClasspathHelper

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

the class CustomTokenClassLoader 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 23 with SharedClassURLClasspathHelper

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

the class CustomURLClassLoaderNoAPIUse 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 24 with SharedClassURLClasspathHelper

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

the class CustomPartitioningURLLoader 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 25 with SharedClassURLClasspathHelper

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

the class CustomURLClassLoader 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)

Aggregations

SharedClassHelperFactory (com.ibm.oti.shared.SharedClassHelperFactory)25 SharedClassURLClasspathHelper (com.ibm.oti.shared.SharedClassURLClasspathHelper)25 HelperAlreadyDefinedException (com.ibm.oti.shared.HelperAlreadyDefinedException)11 CustomURLClassLoader (CustomCLs.CustomURLClassLoader)3 URLClassPathCreator (Utilities.URLClassPathCreator)3 Method (java.lang.reflect.Method)3 CannotSetClasspathException (com.ibm.oti.shared.CannotSetClasspathException)1