Package org.jboss.kernel

Examples of org.jboss.kernel.Kernel


      assertEquals(expected, result);
   }

   protected SimpleBean customListFromSignature() throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
     
      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
      HashSet properties = new HashSet();
      bmd.setProperties(properties);
View Full Code Here


      assertEquals(expected, result);
   }

   protected SimpleBean customListPreInstantiated() throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
     
      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
      HashSet properties = new HashSet();
      bmd.setProperties(properties);
View Full Code Here

      assertEquals(expected, result);
   }

   protected SimpleBean listWithValueTypeOverride() throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
     
      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
      HashSet properties = new HashSet();
      bmd.setProperties(properties);
View Full Code Here

      checkThrowable(ClassCastException.class, exception);
   }
  
   protected SimpleBean listNotAList() throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
     
      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
      HashSet properties = new HashSet();
      bmd.setProperties(properties);
View Full Code Here

      checkThrowable(IllegalArgumentException.class, exception);
   }

   protected SimpleBean listIsInterface() throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
     
      AbstractBeanMetaData bmd = new AbstractBeanMetaData(SimpleBean.class.getName());
      HashSet properties = new HashSet();
      bmd.setProperties(properties);
View Full Code Here

      assertEquals(value, number);
   }

   protected SimpleBean configureSimpleBean(String name, Object value) throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
      BeanInfo info = configurator.getBeanInfo(SimpleBean.class);
      SimpleBean bean = (SimpleBean) instantiate(configurator, info);

      AbstractPropertyMetaData metaData = new AbstractPropertyMetaData(name, value);
     
View Full Code Here

      return super.bootstrap();
   }

   protected XMLUtil bootstrapXML(boolean validate) throws Throwable
   {
      Kernel kernel = super.bootstrap();
      return new XMLUtil(kernel, this, validate);
   }
View Full Code Here

      return joinPoint.dispatch();
   }

   protected Object instantiateAndConfigure(BeanMetaData metaData) throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
      return instantiateAndConfigure(configurator, metaData);
   }
View Full Code Here

      Double doubleValue = new Double("3.14e12");
      Date dateValue = createDate(2001, 1, 1);
      BigDecimal bigDecimalValue = new BigDecimal("12e4");
      BigInteger bigIntegerValue = new BigInteger("123456");

      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
      BeanInfo info = configurator.getBeanInfo(SimpleBean.class);
      SimpleBean bean = (SimpleBean) instantiate(configurator, info);

      AbstractBeanMetaData metaData = new AbstractBeanMetaData();
      HashSet attributes = new HashSet();
View Full Code Here

      super(name);
   }

   public void testInvoke() throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelRegistry registry = kernel.getRegistry();
      KernelConfig config = kernel.getConfig();
      registry.registerEntry("Name1", makeEntry("A string"));
      registry.registerEntry("Name2", makeEntry("B string"));
      KernelBus bus = kernel.getBus();
      TargettedJoinpoint joinPoint = getMethodJoinpoint(config, String.class, "toString");
      Object result1 = bus.invoke("Name1", joinPoint);
      Object result2 = bus.invoke("Name2", joinPoint);
      assertEquals("A string", result1);
      assertEquals("B string", result2);
View Full Code Here

TOP

Related Classes of org.jboss.kernel.Kernel

Copyright © 2018 www.massapicom. 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.