Codota Logo
StartMain
Code IndexAdd Codota to your IDE (free)

How to use
StartMain
in
org.jboss.weld.environment.se

Best Java code snippets using org.jboss.weld.environment.se.StartMain (Showing top 20 results out of 315)

  • Common ways to obtain StartMain
private void myMethod () {
StartMain s =
  • Codota Iconnew StartMain(new String[0])
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.se/weld-se

/**
 * The main method called from the command line.
 *
 * @param args the command line arguments
 */
public static void main(String[] args) {
  new StartMain(args).go();
}
origin: org.lwapp/lwapp-dropwizard-core

public static void main(final String... args) throws Exception {
  try {
    StartMain.main(args);
  } catch (final Exception e) {
    LOG.error("Could not able to start the application.\n" +
        "Please make sure you have an empty beans.xml file in your META-INF folder under 'src/main/resources/META-INF' folder. "
        + "\nThis is because we are using CDI powered by WELD ('http://weld.cdi-spec.org/')", e);
    System.exit(-1);
    throw e;
  }
}
origin: org.lwapp/lwapp-dropwizard-core

public final void start(@Observes final ContainerInitialized event) throws Exception {
  try {
    String[] args = StartMain.getParameters();
    if (args.length == 0) {
      args = new String[2];
      args[0] = terminal.readString("Please provide the command", "server");
      args[1] = terminal.readString("Please provide the application yaml configuration file", "application.properties.yml");
    }
    run(args);
  } catch (final Exception e) {
    LOG.error("Could not able to start the application.\n" +
        "Please make sure you have an empty beans.xml file in your META-INF folder under 'src/main/resources/META-INF' folder. "
        + "\nThis is because we are using CDI powered by WELD ('http://weld.cdi-spec.org/')", e);
    System.exit(-1);
    throw e;
  }
}
origin: weld/core

/**
 * The main method called from the command line.
 *
 * @param args the command line arguments
 */
public static void main(String[] args) {
  try {
    new StartMain(args).go();
  } catch(Throwable t) {
    WeldSELogger.LOG.error("Application exited with an exception", t);
    System.exit(1);
  }
}
origin: weld/core

/**
 * The main method called from the command line.
 *
 * @param args the command line arguments
 */
public static void main(String[] args) {
  try {
    new StartMain(args).go();
  } catch(Throwable t) {
    WeldSELogger.LOG.error("Application exited with an exception", t);
    System.exit(1);
  }
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * The main method called from the command line.
 *
 * @param args the command line arguments
 */
public static void main(String[] args) {
  try {
    new StartMain(args).go();
  } catch(Throwable t) {
    WeldSELogger.LOG.error("Application exited with an exception", t);
    System.exit(1);
  }
}
origin: io.astefanutti.camel.cdi/simplecontextname

  public static void main(String[] args) throws Exception {
    WeldContainer container = new StartMain(args).go();
    // Get a reference to the Camel context named "simple"
    CamelContext context = container.instance().select(CamelContext.class, new ContextName.Literal("simple")).get();
    System.out.println("Camel CDI :: " + context + " started!");
    // And wait until the JVM exits
    new CountDownLatch(1).await();
  }
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-project-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-explorer-backend

@Before
public void setUp() throws Exception {
  //Bootstrap WELD container
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  //Instantiate Paths used in tests for Path conversion
  final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
  final CreationalContext cc = beanManager.createCreationalContext( pathsBean );
  paths = (Paths) beanManager.getReference( pathsBean,
                       Paths.class,
                       cc );
  //Ensure URLs use the default:// scheme
  fs.forceAsDefault();
}
origin: org.kie.guvnor/guvnor-commons-builder

@Before
public void setUp() throws Exception {
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  setUpGuvnorM2Repo();
}
origin: org.kie.workbench.services/kie-wb-common-builder

@Before
public void setUp() throws Exception {
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
  setUpGuvnorM2Repo();
}
origin: org.kie.workbench.services/kie-wb-common-builder

@Before
public void setUp() throws Exception {
  StartMain startMain = new StartMain( new String[ 0 ] );
  beanManager = startMain.go().getBeanManager();
org.jboss.weld.environment.seStartMain

Javadoc

This is the main class that can be called from the command line for a WeldContainer SE app which makes use of the ContainerInitialized event. Something like: java -cp weld-se-shaded.jar:my-app.jar org.jboss.weld.environment.se.StartMain arg1 arg2

Most used methods

  • <init>
  • go
  • getParameters
  • main
    The main method called from the command line.

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Kernel (java.awt.image)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JFileChooser (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now