Package net.officefloor.frame.api.build
Interface DependencyMappingBuilder
-
- All Known Subinterfaces:
ThreadDependencyMappingBuilder
- All Known Implementing Classes:
DependencyMappingBuilderImpl
public interface DependencyMappingBuilder
Provides the mappings of the dependencies of a
ManagedObject
to theManagedObject
providing necessary functionality.This works within the scope of where the
ManagedObject
is being added.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
mapDependency(int index, java.lang.String scopeManagedObjectName)
Specifies theManagedObject
for the index identifying the dependency.<O extends java.lang.Enum<O>>
voidmapDependency(O key, java.lang.String scopeManagedObjectName)
Specifies theManagedObject
for the dependency key.void
mapGovernance(java.lang.String governanceName)
Specifies theGovernance
for theManagedObject
.<E,f extends java.lang.Enum<f>,G extends java.lang.Enum<G>>
AdministrationBuilder<f,G>preLoadAdminister(java.lang.String administrationName, java.lang.Class<E> extension, AdministrationFactory<E,f,G> administrationFactory)
AddsAdministration
to be undertaken before thisManagedObject
is loaded.
-
-
-
Method Detail
-
mapDependency
<O extends java.lang.Enum<O>> void mapDependency(O key, java.lang.String scopeManagedObjectName)
Specifies theManagedObject
for the dependency key.- Type Parameters:
O
- Dependency key type.- Parameters:
key
- Key of the dependency.scopeManagedObjectName
- Name of theManagedObject
within the scope that thisDependencyMappingBuilder
was created.
-
mapDependency
void mapDependency(int index, java.lang.String scopeManagedObjectName)
Specifies theManagedObject
for the index identifying the dependency.- Parameters:
index
- Index identifying the dependency.scopeManagedObjectName
- Name of theManagedObject
within the scope that thisDependencyMappingBuilder
was created.
-
mapGovernance
void mapGovernance(java.lang.String governanceName)
Specifies theGovernance
for theManagedObject
.- Parameters:
governanceName
- Name of theGovernance
within theOffice
.
-
preLoadAdminister
<E,f extends java.lang.Enum<f>,G extends java.lang.Enum<G>> AdministrationBuilder<f,G> preLoadAdminister(java.lang.String administrationName, java.lang.Class<E> extension, AdministrationFactory<E,f,G> administrationFactory)
AddsAdministration
to be undertaken before thisManagedObject
is loaded.- Type Parameters:
E
- Extension type.f
-Flow
key type.G
-Governance
key type.- Parameters:
administrationName
- Name of theAdministration
.extension
- Extension type forAdministration
.administrationFactory
-AdministrationFactory
.- Returns:
AdministrationBuilder
to build theAdministration
.
-
-