Examples of newInstance()


Examples of org.jbehave.core.embedder.EmbedderClassLoader.newInstance()

     */
    protected Embedder newEmbedder() {
        Embedder embedder = null;
        EmbedderClassLoader classLoader = classLoader();
        if (injectableEmbedderClass != null) {
            embedder = classLoader.newInstance(InjectableEmbedder.class, injectableEmbedderClass).injectedEmbedder();
        } else {
            embedder = classLoader.newInstance(Embedder.class, embedderClass);
        }

        URL codeLocation = codeLocation();
View Full Code Here

Examples of org.jboss.beans.info.spi.BeanInfo.newInstance()

         throw new IllegalArgumentException("Javabean class must be set: " + annotation);

      try
      {
         BeanInfo beanInfo = configuration.getBeanInfo(className.getName(), null);
         return new AbstractValueMetaData(beanInfo.newInstance());
      }
      catch (Throwable t)
      {
         throw new IllegalArgumentException("Exception while creating javabean: " + t);
      }
View Full Code Here

Examples of org.jboss.invocation.proxy.ProxyFactory.newInstance()

                                .setSuperClass(clazz)
                                .setProxyName(clazz.getName() + "$$DataSourceProxy" + proxyNameCount.incrementAndGet())
                                .setProtectionDomain(clazz.getProtectionDomain());

                        ProxyFactory<?> proxyFactory = new ProxyFactory(proxyConfiguration);
                        object = proxyFactory.newInstance(new DataSourceTransactionProxyHandler(object, transactionManager, transactionSynchronizationRegistry));
                    } catch (Exception e) {
                        ROOT_LOGGER.cannotProxyTransactionalDatasource(e, className);
                    }
                }
            }
View Full Code Here

Examples of org.jboss.javabean.plugins.xml.Common.Ctor.newInstance()

         // The constructor was never run
         if (result == null)
         {
            try
            {
               return ctor.newInstance();
            }
            catch (Throwable t)
            {
               new RuntimeException("Unable to construct object javabean", t);
            }
View Full Code Here

Examples of org.jboss.managed.spi.factory.ManagedParameterConstraintsPopulatorFactory.newInstance()

               {
                  if (mpa != null)
                     factoryClass = mpa.constraintsFactory();
               }
               ManagedParameterConstraintsPopulatorFactory factory = factoryClass.newInstance();
               ManagedParameterConstraintsPopulator populator = factory.newInstance();
               if (populator != null)
                  populator.populateManagedParameter(name, pinfo, fields);
            }
            catch(Exception e)
            {
View Full Code Here

Examples of org.jboss.managed.spi.factory.ManagedPropertyConstraintsPopulatorFactory.newInstance()

                  {
                     if (managementProperty != null)
                        factoryClass = managementProperty.constraintsFactory();
                  }
                  ManagedPropertyConstraintsPopulatorFactory factory = factoryClass.newInstance();
                  ManagedPropertyConstraintsPopulator populator = factory.newInstance();
                  if (populator != null)
                     populator.populateManagedProperty(clazz, propertyInfo, fields);
               }
               catch(Exception e)
               {
View Full Code Here

Examples of org.jboss.reflect.spi.ConstructorInfo.newInstance()

            else
            {
               String[] signature = getSignature(constructor.getParameters());
               ConstructorInfo constructorInfo = Config.findConstructorInfo(beanInfo.getClassInfo(), signature);
               Object[] params = getParams(constructor.getParameters(), constructorInfo.getParameterTypes());
               result = constructorInfo.newInstance(params);
            }
         }
         else
         {
            result = beanInfo.newInstance();
View Full Code Here

Examples of org.jboss.seam.Component.newInstance()

    Component component = Component.forName(beanType);

    if (component != null)
    {
      value = component.newInstance();
    }
    else
    {
      try {
        value = Reflections.classForName(beanType).newInstance();
View Full Code Here

Examples of org.jboss.soa.esb.http.protocol.ProtocolSocketFactoryBuilder.newInstance()

            if(ProtocolSocketFactoryBuilder.class.isAssignableFrom(factoryClass)) {
                try {
                    ProtocolSocketFactoryBuilder factoryBuilder = (ProtocolSocketFactoryBuilder) factoryClass.newInstance();
                    factoryBuilder.setConfiguration(properties);
                    socketFactory = factoryBuilder.newInstance();
                } catch (InstantiationException e) {
                    throw new ConfigurationException("Failed to instantiate ProtocolSocketFactoryBuilder implementation class [" + factory + "]. Must provide a default constructor.", e);
                } catch (IllegalAccessException e) {
                    throw new ConfigurationException("Failed to instantiate ProtocolSocketFactoryBuilder implementation class [" + factory + "]. Must provide a default constructor.", e);
                }
View Full Code Here

Examples of org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory.newInstance()

         UserTransactionSessionFactory factory;
         Hashtable env = (Hashtable) NamingContextFactory.lastInitialContextEnv.get();
         InitialContext ctx = new InitialContext(env);
         factory = (UserTransactionSessionFactory) ctx.lookup("UserTransactionSessionFactory");
         // Call factory to get a UT session.
         session = factory.newInstance();
      }
      catch (Exception ex)
      {
         throw new RuntimeException("UT factory lookup failed", ex);
      }
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.