Interface CompileOfficeContext
-
- All Known Subinterfaces:
CompileWebContext
- All Known Implementing Classes:
CompileWebContextImpl
public interface CompileOfficeContext
Context for compiling theOffice
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OfficeManagedObject
addManagedObject(java.lang.String managedObjectName, java.lang.Class<?> managedObjectClass, ManagedObjectScope scope)
Adds anOfficeManagedObject
forClassManagedObjectSource
.OfficeSection
addSection(java.lang.String sectionName, java.lang.Class<?> sectionClass)
Adds anOfficeSection
forClassSectionSource
.OfficeArchitect
getOfficeArchitect()
Obtains theOfficeArchitect
.OfficeSection
getOfficeSection()
Obtains theOfficeSection
.OfficeSourceContext
getOfficeSourceContext()
Obtains theOfficeSourceContext
.OfficeSection
overrideSection(java.lang.Class<? extends SectionSource> sectionSourceClass, java.lang.String sectionLocation)
Overrides the defaultOfficeSection
.<T> void
variable(java.lang.String qualifier, java.lang.Class<T> type, java.util.function.Consumer<Var<T>> compileVar)
Listens to a variable.
-
-
-
Method Detail
-
getOfficeArchitect
OfficeArchitect getOfficeArchitect()
Obtains theOfficeArchitect
.- Returns:
OfficeArchitect
.
-
getOfficeSourceContext
OfficeSourceContext getOfficeSourceContext()
Obtains theOfficeSourceContext
.- Returns:
OfficeSourceContext
.
-
addManagedObject
OfficeManagedObject addManagedObject(java.lang.String managedObjectName, java.lang.Class<?> managedObjectClass, ManagedObjectScope scope)
Adds anOfficeManagedObject
forClassManagedObjectSource
.- Parameters:
managedObjectName
- Name of theOfficeManagedObject
.managedObjectClass
-Class
for theClassManagedObjectSource
.scope
-ManagedObjectScope
.- Returns:
OfficeManagedObject
.
-
addSection
OfficeSection addSection(java.lang.String sectionName, java.lang.Class<?> sectionClass)
Adds anOfficeSection
forClassSectionSource
.- Parameters:
sectionName
- Name of theOfficeSection
.sectionClass
-Class
for theClassSectionSource
.- Returns:
OfficeSection
.
-
variable
<T> void variable(java.lang.String qualifier, java.lang.Class<T> type, java.util.function.Consumer<Var<T>> compileVar)
Listens to a variable.- Type Parameters:
T
- Variable type.- Parameters:
qualifier
- Qualifier for variable. May benull
.type
- Type for variable.compileVar
- TypicalCompileVar
to handle value. May, however, be anyConsumer
for the createdVar
.
-
getOfficeSection
OfficeSection getOfficeSection()
Obtains theOfficeSection
.- Returns:
OfficeSection
.
-
overrideSection
OfficeSection overrideSection(java.lang.Class<? extends SectionSource> sectionSourceClass, java.lang.String sectionLocation)
Overrides the defaultOfficeSection
.- Parameters:
sectionSourceClass
-SectionSource
Class
.sectionLocation
- Location of theOfficeSection
.- Returns:
- Overridden
OfficeSection
.
-
-