Package net.officefloor.frame.api.build
Interface DependencyMappingBuilder
-
- All Known Subinterfaces:
ThreadDependencyMappingBuilder
- All Known Implementing Classes:
DependencyMappingBuilderImpl
public interface DependencyMappingBuilderProvides the mappings of the dependencies of a
ManagedObjectto theManagedObjectproviding necessary functionality.This works within the scope of where the
ManagedObjectis being added.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmapDependency(int index, java.lang.String scopeManagedObjectName)Specifies theManagedObjectfor the index identifying the dependency.<O extends java.lang.Enum<O>>
voidmapDependency(O key, java.lang.String scopeManagedObjectName)Specifies theManagedObjectfor the dependency key.voidmapGovernance(java.lang.String governanceName)Specifies theGovernancefor 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)AddsAdministrationto be undertaken before thisManagedObjectis loaded.
-
-
-
Method Detail
-
mapDependency
<O extends java.lang.Enum<O>> void mapDependency(O key, java.lang.String scopeManagedObjectName)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
void mapDependency(int index, java.lang.String scopeManagedObjectName)Specifies theManagedObjectfor the index identifying the dependency.- Parameters:
index- Index identifying the dependency.scopeManagedObjectName- Name of theManagedObjectwithin the scope that thisDependencyMappingBuilderwas created.
-
mapGovernance
void mapGovernance(java.lang.String governanceName)
Specifies theGovernancefor theManagedObject.- Parameters:
governanceName- Name of theGovernancewithin 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)
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.
-
-