Package org.jboss.kernel.plugins.deployment.xml

Examples of org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer


  
   public void bootstrap() throws Throwable
   {
      super.bootstrap();
     
      deployer = new BeanXMLDeployer(getKernel());
     
      Runtime.getRuntime().addShutdownHook(new Shutdown());
     
      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      for (Enumeration e = cl.getResources(StandaloneKernelConstants.DEPLOYMENT_XML_NAME); e.hasMoreElements(); )
View Full Code Here


    */
   public XMLUtil(Kernel kernel, AbstractKernelTest test, boolean validate) throws Throwable
   {
      this.kernel = kernel;
      this.test = test;
      deployer = new BeanXMLDeployer(kernel);
      String packageName = Classes.getPackageName(test.getClass());
      packageName = packageName.replace('.', '/');
      String name = "/xml-test/" + packageName + '/' + test.getName() + ".xml";
      test.getLog().debug("Using " + name);
      URL url = test.getResource(name);
View Full Code Here

    */
   public TestUtil(Kernel kernel, AbstractKernelTest test) throws Throwable
   {
      this.kernel = kernel;
      this.controller = kernel.getController();
      this.deployer = new BeanXMLDeployer(kernel);
      this.test = test;
   }
View Full Code Here

         AbstractBootstrap bootstrap = getBootstrap();
         bootstrap.run();
         kernel = bootstrap.getKernel();
        
         // Create the deployer
         deployer = new BeanXMLDeployer(kernel);
        
         // Deploy
         deploy();
      }
      catch (RuntimeException e)
View Full Code Here

   @Override
   public void bootstrap() throws Throwable
   {
      super.bootstrap();
      deployer = new BeanXMLDeployer(getKernel());
      Runtime.getRuntime().addShutdownHook(new Shutdown());

      for (String arg : args)
      {
         deploy(arg);
View Full Code Here

   }

   void boostrap() throws Throwable
   {
      //
      deployer = new BeanXMLDeployer(bootstrap.getKernel());
/*
      //
      AbstractBeanMetaData beanMD = new AbstractBeanMetaData("ServletContext", ServletContext.class.getName());
      AbstractConstructorMetaData ctorMD = new AbstractConstructorMetaData();
      ctorMD.setFactory(new AbstractValueMetaData(new ServletContextFactory(servletContext)));
View Full Code Here

      return bootstrap1.getKernel();
   }

   protected void deployBaseBootstrapUrl(URL url) throws Throwable
   {
      BeanXMLDeployer deployer = new BeanXMLDeployer(kernel);
      deployer.deploy(url);
   }
View Full Code Here

   protected void deployXmlResource(String resource)
   {
      try
      {
         BeanXMLDeployer deployer = new BeanXMLDeployer(kernel);
         URL bootstrap = Thread.currentThread().getContextClassLoader().getResource(resource);
         if (bootstrap == null)
            throw new RuntimeException("Cannot find " + resource);
         KernelDeployment deployment = deployer.deploy(bootstrap);
         deployer.validate();
         deployments.add(0, deployment);
      }
      catch (Throwable throwable)
      {
         throwable.printStackTrace();
View Full Code Here

         if (deployer != null)
         {
            deployer.stop();
            deployer.destroy();
         }
         BeanXMLDeployer deployer = new BeanXMLDeployer(kernel);
         for (KernelDeployment deployment : deployments)
         {
            deployer.undeploy(deployment);
         }

         for (URL url : aopDeployments)
         {
            AspectXmlLoader.undeployXML(url);
View Full Code Here

    */
   public static void deployXmlResource(String resource)
   {
      try
      {
         BeanXMLDeployer deployer = new BeanXMLDeployer(kernel);
         URL bootstrap = Thread.currentThread().getContextClassLoader().getResource(resource);
         if (bootstrap == null)
            throw new RuntimeException("Cannot find " + resource);
         KernelDeployment deployment = deployer.deploy(bootstrap);
         deployments.add(0, deployment);
         deployer.validate();
      }
      catch (Throwable throwable)
      {
         throw new RuntimeException(throwable);
      }
View Full Code Here

TOP

Related Classes of org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer

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.