Package net.tangly.app
Class Application
java.lang.Object
net.tangly.app.Application
The application defines the context of the whole digital product with a set of bounded domains and their ports.
The bounded domains with their ports are the entry points to the application. The application is a singleton.
The ports are the user interface and the REST services. Ports are optional.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.tangly.core.domain.BoundedDomain<?, ?, ?>> getBoundedDomain(String name) getBoundedDomainRest(String name) getProperty(String property) voidinitializeBoundedDomainRests(@NotNull io.javalin.Javalin javalin) booleaninMemory()static Applicationinstance()booleanvoidregisterBoundedDomain(net.tangly.core.domain.BoundedDomain<?, ?, ?> domain) voidnet.tangly.core.TypeRegistryregistry()
-
Field Details
-
IN_MEMORY_PROPERTY
- See Also:
-
DATABASES_DIRECTORY_PROPERTY
- See Also:
-
IMPORTS_DIRECTORY_PROPERTY
- See Also:
-
REPORTS_DIRECTORY_PROPERTY
- See Also:
-
-
Constructor Details
-
Application
public Application()
-
-
Method Details
-
instance
-
properties
-
registry
public net.tangly.core.TypeRegistry registry() -
initializeBoundedDomainRests
public void initializeBoundedDomainRests(@NotNull @NotNull io.javalin.Javalin javalin) -
boundedDomains
-
boundedDomainRests
-
registerBoundedDomain
public void registerBoundedDomain(net.tangly.core.domain.BoundedDomain<?, ?, ?> domain) -
getBoundedDomain
-
registerBoundedDomainRest
-
getBoundedDomainRest
-
isEnabled
-
inMemory
public boolean inMemory() -
getProperty
-
imports
-
databases
-
reports
-