Package com.io7m.sunburst.runtime
Class Sunburst
java.lang.Object
com.io7m.sunburst.runtime.Sunburst
The
sunburst API.-
Method Summary
Modifier and TypeMethodDescriptionstatic SBRuntimeContextTypeopen(SBInventoryConfiguration configuration) Open a runtime context.static SBRuntimeContextTypeopen(SBInventoryConfiguration configuration, SBRuntimeServiceLoaderType serviceLoader) Open a runtime context.static SBRuntimeContextTypeopenUsingFactory(SBInventoryFactoryType inventories, SBInventoryConfiguration configuration) Open a runtime context.static SBRuntimeContextTypeopenUsingFactory(SBInventoryFactoryType inventories, SBInventoryConfiguration configuration, SBRuntimeServiceLoaderType serviceLoader) Open a runtime context.static SBRuntimeContextTypeopenUsingInventory(SBInventoryReadableType inventory) Open a runtime context.static SBRuntimeContextTypeopenUsingInventory(SBInventoryReadableType inventory, SBRuntimeServiceLoaderType serviceLoader) Open a runtime context.
-
Method Details
-
open
public static SBRuntimeContextType open(SBInventoryConfiguration configuration) throws SBInventoryException Open a runtime context.- Parameters:
configuration- The inventory configuration- Returns:
- A runtime context
- Throws:
SBInventoryException- On inventory errors
-
open
public static SBRuntimeContextType open(SBInventoryConfiguration configuration, SBRuntimeServiceLoaderType serviceLoader) throws SBInventoryException Open a runtime context.- Parameters:
configuration- The inventory configurationserviceLoader- The service loader- Returns:
- A runtime context
- Throws:
SBInventoryException- On inventory errors
-
openUsingFactory
public static SBRuntimeContextType openUsingFactory(SBInventoryFactoryType inventories, SBInventoryConfiguration configuration, SBRuntimeServiceLoaderType serviceLoader) throws SBInventoryException Open a runtime context.- Parameters:
inventories- The inventory factoryconfiguration- The inventory configurationserviceLoader- The service loader- Returns:
- A runtime context
- Throws:
SBInventoryException- On inventory errors
-
openUsingFactory
public static SBRuntimeContextType openUsingFactory(SBInventoryFactoryType inventories, SBInventoryConfiguration configuration) throws SBInventoryException Open a runtime context.- Parameters:
inventories- The inventory factoryconfiguration- The inventory configuration- Returns:
- A runtime context
- Throws:
SBInventoryException- On inventory errors
-
openUsingInventory
Open a runtime context.- Parameters:
inventory- The inventory- Returns:
- A runtime context
-
openUsingInventory
public static SBRuntimeContextType openUsingInventory(SBInventoryReadableType inventory, SBRuntimeServiceLoaderType serviceLoader) Open a runtime context.- Parameters:
inventory- The inventoryserviceLoader- The service loader- Returns:
- A runtime context
-