@ApplicationScoped public class RuntimeModelRegistryImpl extends Object implements RuntimeModelRegistry
| Constructor and Description |
|---|
RuntimeModelRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
availableModels()
List all models that are currently available.
|
Optional<RuntimeModel> |
get(String id)
Get a previously registered import model.
|
DashbuilderRuntimeMode |
getMode()
Returns the registry mode
|
void |
init() |
boolean |
isEmpty()
Returns if this registry has at least one model.
|
Optional<RuntimeModel> |
register(String id,
InputStream fileStream) |
Optional<RuntimeModel> |
registerFile(String fileName)
Store the import from a File path;
|
void |
setMode(DashbuilderRuntimeMode mode)
Sets this runtime mode.
|
Optional<RuntimeModel> |
single()
Returns the first model available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptingNewImports@PostConstruct public void init()
public Optional<RuntimeModel> single()
RuntimeModelRegistrysingle in interface RuntimeModelRegistrypublic Optional<RuntimeModel> get(String id)
RuntimeModelRegistryget in interface RuntimeModelRegistrypublic Optional<RuntimeModel> registerFile(String fileName)
RuntimeModelRegistryregisterFile in interface RuntimeModelRegistryfileName - The path to the filepublic void setMode(DashbuilderRuntimeMode mode)
RuntimeModelRegistrysetMode in interface RuntimeModelRegistrymode - The mode to be used.public boolean isEmpty()
RuntimeModelRegistryisEmpty in interface RuntimeModelRegistrypublic DashbuilderRuntimeMode getMode()
RuntimeModelRegistrygetMode in interface RuntimeModelRegistrypublic Optional<RuntimeModel> register(String id, InputStream fileStream)
public Set<String> availableModels()
RuntimeModelRegistryavailableModels in interface RuntimeModelRegistryCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.