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 the
ManagedObject providing necessary functionality.
This works within the scope of where the ManagedObject is being
added.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidmapDependency(int index, String scopeManagedObjectName) Specifies theManagedObjectfor the index identifying the dependency.<O extends Enum<O>>
voidmapDependency(O key, String scopeManagedObjectName) Specifies theManagedObjectfor the dependency key.voidmapGovernance(String governanceName) Specifies theGovernancefor theManagedObject.<E,f extends Enum<f>, G extends Enum<G>>
AdministrationBuilder<f,G> preLoadAdminister(String administrationName, Class<E> extension, AdministrationFactory<E, f, G> administrationFactory) AddsAdministrationto be undertaken before thisManagedObjectis loaded.
-
Method Details
-
mapDependency
Specifies theManagedObjectfor the dependency key.- Type Parameters:
O- Dependency key type.- Parameters:
key- Key of the dependency.scopeManagedObjectName- Name of theManagedObjectwithin the scope that thisDependencyMappingBuilderwas created.
-
mapDependency
Specifies theManagedObjectfor the index identifying the dependency.- Parameters:
index- Index identifying the dependency.scopeManagedObjectName- Name of theManagedObjectwithin the scope that thisDependencyMappingBuilderwas created.
-
mapGovernance
Specifies theGovernancefor theManagedObject.- Parameters:
governanceName- Name of theGovernancewithin theOffice.
-
preLoadAdminister
<E,f extends Enum<f>, AdministrationBuilder<f,G extends Enum<G>> G> preLoadAdminister(String administrationName, Class<E> extension, AdministrationFactory<E, f, G> administrationFactory) AddsAdministrationto be undertaken before thisManagedObjectis loaded.- Type Parameters:
E- Extension type.f-Flowkey type.G-Governancekey type.- Parameters:
administrationName- Name of theAdministration.extension- Extension type forAdministration.administrationFactory-AdministrationFactory.- Returns:
AdministrationBuilderto build theAdministration.
-