Examples of loadClass()


Examples of org.nasutekds.server.admin.ClassPropertyDefinition.loadClass()

      PasswordValidatorCfgDefn definition =
           PasswordValidatorCfgDefn.getInstance();
      ClassPropertyDefinition propertyDefinition =
           definition.getJavaClassPropertyDefinition();
      Class<? extends PasswordValidator> validatorClass =
           propertyDefinition.loadClass(className, PasswordValidator.class);
      PasswordValidator<? extends PasswordValidatorCfg> validator =
           (PasswordValidator<? extends PasswordValidatorCfg>)
           validatorClass.newInstance();

      if (initialize)
View Full Code Here

Examples of org.ofbiz.base.util.CachedClassLoader.loadClass()

            String dispatcherName = context.getInitParameter("localDispatcherName");
            this.dispatcher = GenericDispatcher.getLocalDispatcher(dispatcherName, this.delegator);
            this.security = SecurityFactory.getInstance(this.delegator);
            this.authz = AuthorizationFactory.getInstance(this.delegator);
            String factoryClassName = context.getInitParameter("requestHandlerFactoryClass");
            this.handlerFactory = (RequestHandlerFactory) loader.loadClass(factoryClassName).newInstance();
        } catch (Exception e) {
            Debug.logError(e, "Error while initializing WebDAV servlet: ", module);
            throw new ServletException(e);
        }
        if (Debug.verboseOn()) {
View Full Code Here

Examples of org.openengsb.labs.delegation.service.ClassProvider.loadClass()

        try {
            ClassProvider service = (ClassProvider) serviceTracker.waitForService(timeout);
            if (service == null) {
                throw new ClassNotFoundException(model.getModelClassName());
            }
            return service.loadClass(model.getModelClassName());
        } catch (InterruptedException e) {
            throw new ClassNotFoundException(model.getModelClassName(), e);
        } finally {
            serviceTracker.close();
        }
View Full Code Here

Examples of org.osgi.framework.Bundle.loadClass()

        }
       
        if(b == null) {
            throw new IllegalArgumentException("No Bundle found that supplies test class " + testName);
        }
        return b.loadClass(testName);
    }

    /** @inheritDoc */
    public long lastModified() {
        return lastModified;
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPluginManager.loadClass()

    for ( int i = 0; i < RETRY_COUNT; i++ ) {
      try {
        if ( !StringUtils.isEmpty( actionId ) ) {
          IPluginManager pluginManager = PentahoSystem.get( IPluginManager.class );
          clazz = pluginManager.loadClass( actionId );
          return clazz;
        } else if ( !StringUtils.isEmpty( actionClass ) ) {
          clazz = Class.forName( actionClass );
          return clazz;
        }
View Full Code Here

Examples of org.qi4j.runtime.composite.FragmentClassLoader.loadClass()

        //       Assert.assertArrayEquals( asm, cl );

        FragmentClassLoader classLoader = new FragmentClassLoader( SomeMixin.class.getClassLoader() );

        Class clazz = classLoader.loadClass( SomeMixin.class.getName() + "_Stub" );

        //       Class clazz = SomeMixin_Stubx.class;

        final Other other = new Other()
        {
View Full Code Here

Examples of org.quartz.simpl.SimpleClassLoadHelper.loadClass()

      String supervisorClassPath = this.getClass().getAnnotation(ERQSMySupervisor.class).value();

      SimpleClassLoadHelper loader = new SimpleClassLoadHelper();
      try
      {
        supervisorClass = (Class<? extends Job>) loader.loadClass(supervisorClassPath);
      } catch (ClassNotFoundException e)
      {
        log.error("method: instantiateJobSupervisor: load class error for supervisorClass: " + supervisorClassPath, e);
      }
    }
View Full Code Here

Examples of org.quartz.spi.ClassLoadHelper.loadClass()

                throw new SchedulerConfigException("No JMX Proxy Scheduler class provided");
            }

            RemoteMBeanScheduler jmxScheduler = null;
            try {
                jmxScheduler = (RemoteMBeanScheduler)loadHelper.loadClass(jmxProxyClass)
                        .newInstance();
            } catch (Exception e) {
                throw new SchedulerConfigException(
                        "Unable to instantiate RemoteMBeanScheduler class.", e);
            }
View Full Code Here

Examples of org.rioproject.loader.CommonClassLoader.loadClass()

            pCap = new SoftwareSupport();
        } else if(className.equals(SoftwareSupport.class.getName())) {
            pCap = new SoftwareSupport();
        } else {
            CommonClassLoader cl = CommonClassLoader.getInstance();
            Class clazz = cl.loadClass(className);
            pCap = (PlatformCapability)clazz.newInstance();
        }
        if(mapping!=null)
            pCap.defineAll(mapping);
        return (pCap);
View Full Code Here

Examples of org.springframework.core.OverridingClassLoader.loadClass()

    assertTrue(bw.isWritableProperty("name"));
    assertTrue(bw.isWritableProperty("age"));
    assertTrue(CachedIntrospectionResults.classCache.containsKey(TestBean.class));

    ClassLoader child = new OverridingClassLoader(getClass().getClassLoader());
    Class tbClass = child.loadClass("org.springframework.beans.TestBean");
    assertFalse(CachedIntrospectionResults.classCache.containsKey(tbClass));
    CachedIntrospectionResults.acceptClassLoader(child);
    bw = new BeanWrapperImpl(tbClass);
    assertTrue(bw.isWritableProperty("name"));
    assertTrue(bw.isWritableProperty("age"));
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.