Examples of create()


Examples of org.jboss.remoting.transport.Connector.create()

      InvokerLocator serverLocator = new InvokerLocator("socket://localhost:9099");

      serverConnector.setInvokerLocator(serverLocator.getLocatorURI());

      serverConnector.create();
     
      serverConnector.setLeasePeriod(5000);
     
      serverConnector.addConnectionListener(new SimpleConnectionListener());

Examples of org.jboss.seam.annotations.In.create()

                    Scope scopeAnn = implType.getAnnotation(Scope.class);
                    boolean stateless = false;
                    if (scopeAnn != null) {
                        stateless = scopeAnn.value() == ScopeType.STATELESS;
                    }
                    boolean mayCreate = inAnnotation.create() || autoCreate || stateless;
                    if (required && !mayCreate) {
                        String msg = "Not allowed to create required component "+compName+" with impl "+implType+". Try @AutoCreate or @In(create=true).";
                        if (ignoreNonResolvable) {
                            log.warn(msg);
                        } else {

Examples of org.jboss.seam.annotations.Observer.create()

         
         Observer observer = method.getAnnotation(Observer.class);
         for ( String eventType : observer.value() )
         {
            if ( eventType.length()==0 ) eventType = method.getName(); //TODO: new defaulting rule to map @Observer onFooEvent() -> event type "fooEvent"
            init.addObserverMethod( eventType, method, this, observer.create() );
         }
      }
     
      if ( method.isAnnotationPresent(RequestParameter.class) )
      {

Examples of org.jboss.seam.mail.MailSession.create()

   public void testBasicMailSession()
   {

      MailSession mailSession = new MailSession();

      mailSession.create();

      Session session = null;

      try
      {

Examples of org.jboss.seam.security.Identity.create()

        
         // Create a mock session
         Contexts.getSessionContext().set(Component.getComponentName(Session.class), new Session());
        
         Identity identity = new MockIdentity();
         identity.create();
        
         // Put the identity into our session context
         Contexts.getSessionContext().set(Component.getComponentName(Identity.class), identity);        
        
         // Test addRole()

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

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

Examples of org.jboss.security.SecurityProxyFactory.create()

               {
                  // Get default SecurityProxyFactory from JNDI at
                  InitialContext iniCtx = new InitialContext();
                  SecurityProxyFactory proxyFactory =
                     (SecurityProxyFactory)iniCtx.lookup(SECURITY_PROXY_FACTORY_NAME);
                  securityProxy = proxyFactory.create(secProxy);
               }
               catch (Exception e)
               {
                  log.error("Failed to initialze DefaultSecurityProxy", e);
               }

Examples of org.jboss.security.auth.AuthenticationTimedCachePolicy.create()

   {
      TimedCachePolicy cachePolicy =
          new AuthenticationTimedCachePolicy(SecurityConstantsBridge.defaultCacheTimeout,
                               true,
                               SecurityConstantsBridge.defaultCacheResolution);
      cachePolicy.create();
      cachePolicy.start();
      return cachePolicy;
   }
  
   /**
 

Examples of org.jboss.shrinkwrap.descriptor.spi.Node.create()

               {
                  return;
               }
            }

            excludes.create("include").text(dep.getGroupId() + ":" + dep.getArtifactId());
         }
      });
   }

   @Command(help = "Exclude a dependency from the uber-jar")

Examples of org.jboss.soa.esb.util.TestDeploymentArchive.create()

        deployment.addEntry("META-INF/deployment.xml", JmsGatewayListenerUnitTest.class.getResourceAsStream("deployment.xml"));
        deployment.addEntry("jms-service.xml", JmsGatewayListenerUnitTest.class.getResourceAsStream("JmsGatewayListenerUnitTest-service.xml"));
        deployment.addEntry(MessageAugmentor.class);
        deployment.addEntry(TargetServiceAction.class);

        deployment.create();
    }
}
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.