Examples of create()


Examples of org.jboss.solder.reflection.annotated.AnnotatedTypeBuilder.create()

        AnnotatedTypeBuilder builder;
        builder = new AnnotatedTypeBuilder()
                .readFromType(type)
                .removeFromClass(jsfScope)
                .addToClass(cdiScopeAnnotation);
        return builder.create();
    }
}

Examples of org.jboss.system.Service.create()

public class CreateDestroyLifecycleAction extends ServiceControllerContextAction
{
   public void installAction(ServiceControllerContext context) throws Throwable
   {
      Service service = context.getServiceProxy();
      service.create();

      context.getServiceContext().state = ServiceContext.CREATED;
     
      ObjectName objectName = context.getObjectName();
      ServiceController serviceController = context.getServiceController();

Examples of org.jboss.system.ServiceControllerMBean.create()

         assertEquals(1, test.createOrder);
         assertEquals(2, test.startOrder);
         assertEquals(3, test.stopOrder);
         assertEquals(4, test.destroyOrder);

         controller.create(name);
         assertServiceCreated(name);
         assertEquals(5, test.createOrder);
         assertEquals(2, test.startOrder);
         assertEquals(3, test.stopOrder);
         assertEquals(4, test.destroyOrder);

Examples of org.jboss.system.deployers.LegacyPrefixDeploymentContextComparator.create()

   }
  
   public void setUp()
   {
      LegacyPrefixDeploymentContextComparator prefixComparator = new LegacyPrefixDeploymentContextComparator();
      prefixComparator.create();
      comparator = prefixComparator;
   }

   /**
    * Verifies leading zeros are ignored.

Examples of org.jboss.system.server.profileservice.hotdeploy.HDScanner.create()

    public void testSettingScanEnabledToFalseDoesNotCauseActiveScan()
    throws Exception
    {
      HDScanner hdScanner = new HDScanner();
      hdScanner.setScanEnabled(false);
      hdScanner.create();
      hdScanner.start();

      // Does starting the HDScanner cause a scan to be scheduled?  It shouldn't when
      // ScanEnabled is false.
      assertFalse("HDScanner had a scheduled scan when ScanEnabled was false",

Examples of org.jboss.system.server.profileservice.repository.AbstractProfileService.create()

      adapter.setAttachmentStore(new MockAttachmentStore());
      AbstractController parentController = new AbstractController();
      AbstractProfileService profileService = new AbstractProfileService(parentController);
      profileService.setDeployer(adapter);
      //
      profileService.create();
      this.profileService = profileService;
   }
  
   public void testProfileService() throws Exception
   {

Examples of org.jboss.test.aop.earwithwebinf.ejb.ExampleSessionHome.create()

   public String invokeEjb(String s) throws Exception
   {
      InitialContext ctx = new InitialContext();
      Object obj = ctx.lookup("ExampleSession");
      ExampleSessionHome home = (ExampleSessionHome)PortableRemoteObject.narrow(obj, ExampleSessionHome.class);
      ExampleSession exSess = home.create();
      return exSess.getValue(s);
   }

}

Examples of org.jboss.test.aop.scoped.ear.ejb.ExampleSessionHome.create()

         {
            System.out.println(i + " " + ifs[i].getName() + " " + ifs[i].getClassLoader());
         }
        
         ExampleSessionHome home = (ExampleSessionHome)PortableRemoteObject.narrow(obj, ExampleSessionHome.class);
         ExampleSession exSess = home.create();
        
         TestInterceptor.intercepted = 0;
         exSess.getValue("hello");
         if (TestInterceptor.intercepted != 1)
         {

Examples of org.jboss.test.aop.simpleejb.SimpleHome.create()

      try
      {
         Object obj = ctx.lookup("ejb/test/Simple");
         SimpleHome home = (SimpleHome)
                 PortableRemoteObject.narrow(obj, SimpleHome.class);
         Simple test = home.create();
         assertEquals(SimpleBeanInterceptor.RETURN_VALUE, test.getTest());
      }
      finally
      {
         ctx.close();

Examples of org.jboss.test.bankiiop.interfaces.BankHome.create()

      Teller teller = home.create();
     
      BankHome bankHome = (BankHome)PortableRemoteObject.narrow(
                               getInitialContext().lookup(BankHome.JNDI_NAME),
                               BankHome.class);
      Bank bank = bankHome.create();
     
      getLog().debug("Acquire customers");
      Customer marc = teller.getCustomer("Marc");
      Customer rickard = teller.getCustomer("Rickard");
     
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.