Package org.jboss.virtual

Examples of org.jboss.virtual.AssembledDirectory.addClass()


   }

   public void testAddClass() throws Exception
   {
      AssembledDirectory directory = AssembledContextFactory.getInstance().create("foo.jar");
      directory.addClass(VirtualFile.class);


      List<VirtualFile> children = directory.getChildren();
      assertEquals(children.size(), 1);
      VirtualFile curr = children.get(0);
View Full Code Here


   }

   public void testEJB() throws Exception
   {
      AssembledDirectory jar = AssembledContextFactory.getInstance().create("vfs-test.jar");
      jar.addClass(HelloWorld.class);
      jar.addClass(HelloWorldBean.class);

      Bootstrap.getInstance().deploy(jar);
      HelloWorld hello = (HelloWorld)new InitialContext().lookup("HelloWorldBean/local");
      hello.hello();
View Full Code Here

   public void testEJB() throws Exception
   {
      AssembledDirectory jar = AssembledContextFactory.getInstance().create("vfs-test.jar");
      jar.addClass(HelloWorld.class);
      jar.addClass(HelloWorldBean.class);

      Bootstrap.getInstance().deploy(jar);
      HelloWorld hello = (HelloWorld)new InitialContext().lookup("HelloWorldBean/local");
      hello.hello();
      Bootstrap.getInstance().undeploy(jar);
View Full Code Here

   public void testBasic() throws Throwable
   {
      String appName = "fdAppName.jar";
      AssembledDirectory root = createAssembledDirectory(appName, appName);
      root.addClass(FDTest.class);
      addPath(root, "/dependency/fd", "");

      DeploymentUnit unit = assertDeploy(root);
      try
      {
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.