Search in sources :

Example 46 with SharedClassHelperFactory

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

the class CustomURLClassLoaderNonConfirming 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 47 with SharedClassHelperFactory

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

the class CustomURLClassLoaderNonConfirming 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 48 with SharedClassHelperFactory

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

the class CustomPartitioningURLCL 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 49 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory 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 50 with SharedClassHelperFactory

use of com.ibm.oti.shared.SharedClassHelperFactory 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)

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