org.qi4j.bootstrap

## Class Energy4Java

- java.lang.Object
- - org.qi4j.bootstrap.Energy4Java

-     public final class Energy4Java
      extends Object

  Main bootstrap class for starting Zest and creating new applications.

  Instantiate this and call one of the factory methods to get started.

  This class will use the Service Loader mechanism in Java to try to locate a runtime that implements the Qi4jRuntime interface. This avoids a direct dependency from the bootstrap to the runtime.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Energy4Java()`
    `Energy4Java(Qi4jRuntime runtime)`
    `Energy4Java(RuntimeFactory runtimeFactory)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Qi4j` | `api()`
    `Application` | `newApplication(ApplicationAssembler assembler, Object... importedServiceInstances)`
    `ApplicationDescriptor` | `newApplicationModel(ApplicationAssembler assembler)`
    `Qi4jSPI` | `spi()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Energy4Java

          public Energy4Java(RuntimeFactory runtimeFactory)

    - #### Energy4Java

          public Energy4Java()

    - #### Energy4Java

          public Energy4Java(Qi4jRuntime runtime)

  - ### Method Detail

    - #### newApplicationModel

          public ApplicationDescriptor newApplicationModel(ApplicationAssembler assembler)
                                                    throws AssemblyException

      Throws:
        `AssemblyException`

    - #### newApplication

          public Application newApplication(ApplicationAssembler assembler,
                                   Object... importedServiceInstances)
                                     throws AssemblyException

      Throws:
        `AssemblyException`

    - #### spi

          public Qi4jSPI spi()

    - #### api

          public Qi4j api()