Search in sources :

Example 16 with SharedClassHelperFactory

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

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

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

the class CustomTokenClassLoader method getHelper.

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

Example 18 with SharedClassHelperFactory

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

the class CustomTokenClassLoader 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 19 with SharedClassHelperFactory

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

the class CustomURLClassLoaderNoAPIUse 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 20 with SharedClassHelperFactory

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

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

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