Examples of newInstance()


Examples of org.kie.definition.type.FactType.newInstance()

        Assert.assertNotNull( "could not get type",
                              type );

        ksession = disposeAndReloadSession( ksession,
                                            kbase );
        ksession.getWorkingMemoryEntryPoint( "Test" ).insert( type.newInstance() );
        ksession.fireAllRules();
        ksession = disposeAndReloadSession( ksession,
                                            kbase );

        ksession = disposeAndReloadSession( ksession,
View Full Code Here

Examples of org.maqetta.server.IStorage.newInstance()

              String name = libraryElement.getDeclaringExtension().getContributor().getName();
              Bundle bundle = Activator.getActivator().getOtherBundle(name);
              IStorage file =this.getStorage().newInstance(project.getPath());
     
          if(basePath!=null && !basePath.equals(""))
            file = file.newInstance(project.getPath()+ "/" + basePath);
       
       
        VResourceUtils.copyDirectory(file, path, bundle);
      }
View Full Code Here

Examples of org.netbeans.jemmy.ClassReference.newInstance()

    }
   
    private void doInitRobot() {
        try {
            ClassReference robotClassReverence = new ClassReference("java.awt.Robot");
            robotReference = new ClassReference(robotClassReverence.newInstance(null, null));
            robotReference.invokeMethod("setAutoDelay",
                    new Object[] {new Integer((int)((autoDelay != null) ?
                        autoDelay.getValue() :
                        0))},
                    new Class[] {Integer.TYPE});
View Full Code Here

Examples of org.nustaq.serialization.FSTClazzInfo.newInstance()

                }
                if (DEBUG_STACK) {
                    stack.pop();
                }
            } else {
                res = clInfo.newInstance(true);
                if (res==null) {
                    throw new RuntimeException(clInfo.getClazz().getName()+" misses a default constructor. Instantiation failed.");
                }
                List keyVals = readObjectFields(clInfo);
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.newInstance()

        Type thr = Type.getType(Throwable.class);
        Label handler = ga.mark();
        Type udt = Type.getType(UndeclaredThrowableException.class);
        int loc = ga.newLocal(thr);
        ga.storeLocal(loc, thr);
        ga.newInstance(udt);
        ga.dup();
        ga.loadLocal(loc, thr);
        ga.invokeConstructor(udt, org.objectweb.asm.commons.Method
                .getMethod("void <init>(java.lang.Throwable)"));
        ga.throwException();
View Full Code Here

Examples of org.objenesis.Objenesis.newInstance()

        /* To make the proxy creator work with Eclipse plugins */
    enhancer.setClassLoader(ProxyCreator.class.getClassLoader());

    // Instantiate the proxied class
    Objenesis objenesis = new ObjenesisStd();
    proxy = objenesis.newInstance(proxiedClass);
    return proxy;
  }

  private static Object createInterfaceProxy(Class<?> targetClass, InvocationHandler invocationHandler) {
    return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
View Full Code Here

Examples of org.objenesis.ObjenesisStd.newInstance()

        /* To make the proxy creator work with Eclipse plugins */
    enhancer.setClassLoader(ProxyCreator.class.getClassLoader());

    // Instantiate the proxied class
    Objenesis objenesis = new ObjenesisStd();
    proxy = objenesis.newInstance(proxiedClass);
    return proxy;
  }

  private static Object createInterfaceProxy(Class<?> targetClass, InvocationHandler invocationHandler) {
    return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
View Full Code Here

Examples of org.objenesis.instantiator.ObjectInstantiator.newInstance()

    ObjectInstantiator instantiator = registration.getInstantiator();
    if (instantiator == null) {
      instantiator = newInstantiator(type);
      registration.setInstantiator(instantiator);
    }
    return (T)instantiator.newInstance();
  }

  /** Name/value pairs that are available to all serializers. */
  public ObjectMap getContext () {
    if (context == null) context = new ObjectMap();
View Full Code Here

Examples of org.opensaml.xml.security.credential.BasicKeyInfoGeneratorFactory.newInstance()

        BasicX509Credential keyInfoCredential = new BasicX509Credential();
        keyInfoCredential.setEntityCertificate(certificate);
        keyInfoCredential.setPublicKey(certificate.getPublicKey());
        BasicKeyInfoGeneratorFactory kiFactory = new BasicKeyInfoGeneratorFactory();
        kiFactory.setEmitPublicKeyValue(true);
        KeyInfo keyInfo = kiFactory.newInstance().generate(keyInfoCredential);
        keyInfoDataType.getKeyInfos().add(keyInfo);
        subject.getSubjectConfirmations().add(confirmation);
        subject.getSubjectConfirmations().get(0)
                .setSubjectConfirmationData(keyInfoDataType);
        return subject;
View Full Code Here

Examples of org.opensaml.xml.security.keyinfo.KeyInfoGeneratorFactory.newInstance()

                kiFactory = kiMgr.getDefaultManager().getFactory(credential);
            } else {
                kiFactory = kiMgr.getFactory(keyInfoGenName, credential);
            }
            if (kiFactory != null) {
                return kiFactory.newInstance();
            }
        }
        return null;
    }
   
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.