Package io.deephaven.appmode
Interface ApplicationConfig
- All Known Implementing Classes:
DynamicApplication
,QSTApplication
,ScriptApplication
,StaticClassApplication
public interface ApplicationConfig
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Path
The custom application directory.static List<ApplicationConfig>
find()
Parses the list of application configs found by searching the directory specified by the system propertyApplication.dir
.static boolean
Returns true if the configuration property "deephaven.application.dir" is set, or if the "app.d" exists in the configuration directory.boolean
<V extends ApplicationConfig.Visitor>
Vwalk
(V visitor)
-
Method Details
-
isCustomApplicationModeEnabled
static boolean isCustomApplicationModeEnabled()Returns true if the configuration property "deephaven.application.dir" is set, or if the "app.d" exists in the configuration directory.- Returns:
- true if custom application mode is enabled
-
customApplicationDir
The custom application directory. Returns the configuration property "deephaven.application.dir" if it set, otherwise it returns the "app.d" from the configuration directory if it exists, otherwise it throws anIllegalStateException
.- Returns:
- the application dir
- See Also:
-
find
Parses the list of application configs found by searching the directory specified by the system propertyApplication.dir
. A path is considered an application file when the name ends in.app
, the file isreadable
, and the file isregular
and not a link. The resulting configs will be sorted lexicographically based on file name. Application mode must be enabled.- Returns:
- the list of application configs
- Throws:
IOException
- on I/O exceptionClassNotFoundException
- on class not found
-
isEnabled
boolean isEnabled()- Returns:
- whether this particular application is enabled
-
walk
-