public final class Energy4Java extends Object
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 PolygeneRuntime interface. This avoids a direct dependency from the bootstrap to the runtime.
Constructor and Description |
---|
Energy4Java() |
Energy4Java(PolygeneRuntime runtime) |
Energy4Java(RuntimeFactory runtimeFactory) |
Modifier and Type | Method and Description |
---|---|
PolygeneAPI |
api() |
Application |
newApplication(ApplicationAssembler assembler,
Object... importedServiceInstances) |
ApplicationDescriptor |
newApplicationModel(ApplicationAssembler assembler) |
PolygeneSPI |
spi() |
public Energy4Java(RuntimeFactory runtimeFactory)
public Energy4Java()
public Energy4Java(PolygeneRuntime runtime)
public ApplicationDescriptor newApplicationModel(ApplicationAssembler assembler) throws AssemblyException
AssemblyException
public Application newApplication(ApplicationAssembler assembler, Object... importedServiceInstances) throws AssemblyException
AssemblyException
public PolygeneSPI spi()
public PolygeneAPI api()