Package io.deephaven.appmode
Class DynamicApplication<T extends ApplicationState.Factory>
java.lang.Object
io.deephaven.appmode.DynamicApplication<T>
- All Implemented Interfaces:
ApplicationConfig
@Immutable
public abstract class DynamicApplication<T extends ApplicationState.Factory>
extends Object
implements ApplicationConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.appmode.ApplicationConfig
ApplicationConfig.Visitor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclazz()
final ApplicationState
create
(ApplicationState.Listener appStateListener) abstract boolean
static <T extends ApplicationState.Factory>
DynamicApplication<T>parse
(Properties properties) final <V extends ApplicationConfig.Visitor>
Vwalk
(V visitor)
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
DynamicApplication
public DynamicApplication()
-
-
Method Details
-
parse
public static DynamicApplication<ApplicationState.Factory> parse(Properties properties) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
of
public static <T extends ApplicationState.Factory> DynamicApplication<T> of(Class<T> clazz, boolean isEnabled) -
clazz
-
isEnabled
@Parameter public abstract boolean isEnabled()- Specified by:
isEnabled
in interfaceApplicationConfig
- Returns:
- whether this particular application is enabled
-
create
public final ApplicationState create(ApplicationState.Listener appStateListener) throws InstantiationException, IllegalAccessException -
walk
- Specified by:
walk
in interfaceApplicationConfig
-