Examples of ClassLoaderProvider


Examples of javassist.util.proxy.ProxyFactory.ClassLoaderProvider

  }

  @Override
  public void contextInitialized(ServletContextEvent sce) {
    // Make Javassist always use the TCCL to load classes
    ProxyFactory.classLoaderProvider = new ClassLoaderProvider() {

      public ClassLoader get(ProxyFactory pf) {
        return Thread.currentThread().getContextClassLoader();
      }
View Full Code Here

Examples of javassist.util.proxy.ProxyFactory.ClassLoaderProvider

  }

  @Override
  public void contextInitialized(ServletContextEvent sce) {
    // Make Javassist always use the TCCL to load classes
    ProxyFactory.classLoaderProvider = new ClassLoaderProvider() {

      public ClassLoader get(ProxyFactory pf) {
        return Thread.currentThread().getContextClassLoader();
      }
View Full Code Here

Examples of javassist.util.proxy.ProxyFactory.ClassLoaderProvider

    @Override
    public void contextInitialized(ServletContextEvent sce)
    {
        // Make Javassist always use the TCCL to load classes
        ProxyFactory.classLoaderProvider = new ClassLoaderProvider()
        {

            public ClassLoader get(ProxyFactory pf)
            {
                return Thread.currentThread().getContextClassLoader();
View Full Code Here

Examples of net.md_5.specialsource.provider.ClassLoaderProvider

        // ensure that inheritance provider is used
        JointProvider inheritanceProviders = new JointProvider();
        inheritanceProviders.add(new JarProvider(inputJar));
        if (classpath != null)
            inheritanceProviders.add(new ClassLoaderProvider(new URLClassLoader(ObfuscateTask.toUrls(classpath))));
        mapping.setFallbackInheritanceProvider(inheritanceProviders);

        // remap jar
        remapper.remapJar(inputJar, output);
    }
View Full Code Here

Examples of net.md_5.specialsource.provider.ClassLoaderProvider

        // ensure that inheritance provider is used
        JointProvider inheritanceProviders = new JointProvider();
        inheritanceProviders.add(new JarProvider(input));

        if (classpath != null)
            inheritanceProviders.add(new ClassLoaderProvider(new URLClassLoader(toUrls(classpath))));

        mapping.setFallbackInheritanceProvider(inheritanceProviders);

        File out = getOutJar();
        if (!out.getParentFile().exists()) //Needed because SS doesn't create it.
View Full Code Here

Examples of net.sf.joafip.service.ClassLoaderProvider

    final StoreSynchro storeSynchro = new StoreSynchro();
    storeSynchro.setPersistenceId(0);
    storeSynchro.newCurrentFileAccessSession();
    classInfoFactory = new ClassInfoFactory(1);
    final HelperBinaryConversion helperBinaryConversion = new HelperBinaryConversion();
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        classLoaderProvider, classInfoFactory);
    objectIOManager = new ObjectIOManager(
    /**/1/* currentDataModelIdentifier */,
    /**/dataManager,
 
View Full Code Here

Examples of net.sf.joafip.service.ClassLoaderProvider

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        new ClassLoaderProvider(), classInfoFactory);
    final Object object = proxyManager2.newInstanceNoConstruction(
        classInfo, storageInfo, this, DataRecordIdentifier.LAST, true)
        .getObject();
    assertTrue("must say is a proxy",
        ProxyManager2.isProxyOrEnhanced(object));
View Full Code Here

Examples of net.sf.joafip.service.ClassLoaderProvider

        classInfoFactory));
    final ClassNameManager classNameManager = new ClassNameManager(
        heapRecordableManager, storeHeader, classInfoFactory,
        helperBinaryConversion);
    helperBinaryConversion.initialize(classInfoFactory, null);
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    proxyManager2 = new ProxyManager2(classLoaderProvider, classInfoFactory);
    objectIOManager = new ObjectIOManager(1, dataManager,
        true/* proxy mode */, classNameManager, storeSynchro,
        classInfoFactory, helperBinaryConversion, proxyManager2);
    objectIOManager.setGarbageManagement(true/* garbage management */, this);
View Full Code Here

Examples of net.sf.joafip.service.ClassLoaderProvider

  protected void setUp() throws Exception {// NOPMD
    super.setUp();
    version0 = Version.releaseId("0.0.0");
    version1 = Version.releaseId("0.0.1");
    classInfoFactory = new ClassInfoFactory(1);
    classInfoFactory.setClassLoaderProvider(new ClassLoaderProvider());
    fieldType = classInfoFactory.getNoProxyClassInfo(Integer.class);
  }
View Full Code Here

Examples of net.sf.joafip.service.ClassLoaderProvider

  public void test() throws ClassInfoException, ProxyException {
    final Class<?> objectClass = BobCallInConstructor.class;
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        new ClassLoaderProvider(), classInfoFactory);
    final StorageInfo storageInfo = new StorageInfo();
    inConstruction = true;
    final BobCallInConstructor object = (BobCallInConstructor) proxyManager2
        .newInstanceConstruct(classInfo,
            new Class<?>[] { String.class },
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.