Examples of Bootstrap


Examples of org.apache.shindig.social.opensocial.jpa.openjpa.Bootstrap

  private static EntityManager entityManager;

  // @BeforeClass
  public static void config() {
    Bootstrap b = new Bootstrap();
    // Bootstrap b = new
    // Bootstrap("com.mysql.jdbc.Driver",
    // "jdbc:mysql://localhost/sakaikernel?useUnicode=true&characterEncoding=UTF-8",
    // "sakaikernel", "sakaikernel","1","1");
    entityManager = b.getEntityManager("openjpa");
  }
View Full Code Here

Examples of org.eobjects.datacleaner.bootstrap.Bootstrap

  public static void main(String[] args) {
    initializeLogging();

    BootstrapOptions bootstrapOptions = new DefaultBootstrapOptions(args);
    Bootstrap bootstrap = new Bootstrap(bootstrapOptions);
    bootstrap.run();
  }
View Full Code Here

Examples of org.jboss.as.server.Bootstrap

                if (!realFile.exists()) {
                    throw MESSAGES.cannotFindAppClientFile(realFile.getAbsoluteFile());
                }

                final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
                final Bootstrap.Configuration configuration = new Bootstrap.Configuration(serverEnvironment);
                configuration.setModuleLoader(Module.getBootModuleLoader());
                final ExtensionRegistry extensionRegistry = configuration.getExtensionRegistry();
                final AppClientXml parser = new AppClientXml(Module.getBootModuleLoader(), extensionRegistry);
                final Bootstrap.ConfigurationPersisterFactory configurationPersisterFactory = new Bootstrap.ConfigurationPersisterFactory() {

                    @Override
                    public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
                        ApplicationClientConfigurationPersister persister = new ApplicationClientConfigurationPersister(earPath, deploymentName, options.hostUrl,options.propertiesFile, params,
                                serverEnvironment.getServerConfigurationFile().getBootFile(), rootElement, parser);
                        for (Namespace namespace : Namespace.values()) {
                            if (!namespace.equals(Namespace.CURRENT)) {
                                persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "server"), parser);
                            }
                        }
                        extensionRegistry.setWriterRegistry(persister);
                        return persister;
                    }
                };
                configuration.setConfigurationPersisterFactory(configurationPersisterFactory);
                bootstrap.bootstrap(configuration, Collections.<ServiceActivator>emptyList()).get();
            }
        } catch (Throwable t) {
            abort(t);
        }
    }
View Full Code Here

Examples of org.jboss.as.server.Bootstrap

                if (!realFile.exists()) {
                    throw AppClientLogger.ROOT_LOGGER.cannotFindAppClientFile(realFile.getAbsoluteFile());
                }

                final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
                final Bootstrap.Configuration configuration = new Bootstrap.Configuration(serverEnvironment);
                configuration.setModuleLoader(Module.getBootModuleLoader());
                final ExtensionRegistry extensionRegistry = configuration.getExtensionRegistry();
                final AppClientXml parser = new AppClientXml(Module.getBootModuleLoader(), extensionRegistry);
                final Bootstrap.ConfigurationPersisterFactory configurationPersisterFactory = new Bootstrap.ConfigurationPersisterFactory() {

                    @Override
                    public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
                        ApplicationClientConfigurationPersister persister = new ApplicationClientConfigurationPersister(earPath, deploymentName, options.hostUrl,options.propertiesFile, params,
                                serverEnvironment.getServerConfigurationFile().getBootFile(), rootElement, parser);
                        for (Namespace namespace : Namespace.domainValues()) {
                            if (!namespace.equals(Namespace.CURRENT)) {
                                persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "server"), parser);
                            }
                        }
                        extensionRegistry.setWriterRegistry(persister);
                        return persister;
                    }
                };
                configuration.setConfigurationPersisterFactory(configurationPersisterFactory);
                bootstrap.bootstrap(configuration, Collections.<ServiceActivator>emptyList()).get();
            }
        } catch (Throwable t) {
            abort(t);
        }
    }
View Full Code Here

Examples of org.jboss.as.server.Bootstrap

            public void start() throws ServerStartException {
                try {
                    // Determine the ServerEnvironment
                    ServerEnvironment serverEnvironment = Main.determineEnvironment(cmdargs, systemProps, systemEnv, ServerEnvironment.LaunchType.EMBEDDED);

                    Bootstrap bootstrap = Bootstrap.Factory.newInstance();

                    Bootstrap.Configuration configuration = new Bootstrap.Configuration(serverEnvironment);

                    /*
                     * This would setup an {@link TransientConfigurationPersister} which does not persist anything
                     *
                    final ExtensionRegistry extensionRegistry = configuration.getExtensionRegistry();
                    final Bootstrap.ConfigurationPersisterFactory configurationPersisterFactory = new Bootstrap.ConfigurationPersisterFactory() {
                        @Override
                        public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
                            final QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
                            final StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
                            final File configurationFile = serverEnvironment.getServerConfigurationFile().getBootFile();
                            XmlConfigurationPersister persister = new TransientConfigurationPersister(configurationFile, rootElement, parser, parser);
                            for (Namespace namespace : Namespace.domainValues()) {
                                if (!namespace.equals(Namespace.CURRENT)) {
                                    persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "server"), parser);
                                }
                            }
                            extensionRegistry.setWriterRegistry(persister);
                            return persister;
                        }
                    };
                    configuration.setConfigurationPersisterFactory(configurationPersisterFactory);
                    */

                    configuration.setModuleLoader(moduleLoader);

                    Future<ServiceContainer> future = bootstrap.startup(configuration, Collections.<ServiceActivator>emptyList());

                    serviceContainer = future.get();

                    @SuppressWarnings("unchecked")
                    final Value<ModelController> controllerService = (Value<ModelController>) serviceContainer.getRequiredService(Services.JBOSS_SERVER_CONTROLLER);
View Full Code Here

Examples of org.jboss.embedded.Bootstrap

public class EmbeddedBootstrap
{
  
   public void startAndDeployResources() throws Exception
   {
      Bootstrap bootstrap = Bootstrap.getInstance();
      bootstrap.bootstrap();

      if (resourceExists("seam.properties"))
      {
         bootstrap.deployResourceBases("seam.properties");
      }
      if (resourceExists("META-INF/components.xml"))
      {
         bootstrap.deployResourceBases("META-INF/components.xml");
      }
      if (resourceExists("META-INF/seam.properties"))
      {
         bootstrap.deployResourceBases("META-INF/seam.properties");
      }
   }
View Full Code Here

Examples of org.jboss.weld.bootstrap.api.Bootstrap

public class DiscoverFailsBootstrapTest {

    @Test(expectedExceptions = IllegalArgumentException.class)
    public void testDiscoverFails() {
        Bootstrap bootstrap = new WeldBootstrap();
        bootstrap.startContainer(Environments.SE, null);
    }
View Full Code Here

Examples of org.sdnplatform.sync.internal.config.bootstrap.Bootstrap

                    ArrayList<HostAndPort> hosts = new ArrayList<HostAndPort>();
                    for (String s : seeds) {
                        hosts.add(HostAndPort.fromString(s).
                                      withDefaultPort(6642));
                    }
                    Bootstrap bs = new Bootstrap(syncManager,
                                                 authScheme,
                                                 keyStorePath,
                                                 keyStorePassword);
                    bs.init();
                    try {
                        for (HostAndPort host : hosts) {
                            if (bs.bootstrap(host, localNode))
                                break;
                        }
                    } finally {
                        bs.shutdown();
                    }
                    if (logger.isDebugEnabled()) {
                        logger.debug("[{}] Successfully bootstrapped",
                                     unsyncStoreClient.getValue(LOCAL_NODE_ID));
                    }
View Full Code Here

Examples of org.springframework.roo.shell.eclipse.Bootstrap

    return this.isReady;
  }

  public void removeTab() {
    if (bootstrap != null) {
      final Bootstrap shutdownBootstrap = bootstrap;
      Job shutdownJob = new Job("Shutdown Roo") {
        @Override
        protected IStatus run(IProgressMonitor monitor) {
          shutdownBootstrap.shutdown();
          return Status.OK_STATUS;
        }
      };
      shutdownJob.schedule();
    }
View Full Code Here

Examples of org.springframework.shell.Bootstrap

import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    Bootstrap bootstrap = new Bootstrap("META-INF/spring/spring-shell-plugin.xml");
  }
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.