Class DependencyMappingBuilderImpl<O extends Enum<O>>
java.lang.Object
net.officefloor.frame.impl.construct.managedobject.DependencyMappingBuilderImpl<O>
- All Implemented Interfaces:
DependencyMappingBuilder,ThreadDependencyMappingBuilder,InputManagedObjectConfiguration<O>,ManagedObjectConfiguration<O>
public class DependencyMappingBuilderImpl<O extends Enum<O>>
extends Object
implements DependencyMappingBuilder, ThreadDependencyMappingBuilder, ManagedObjectConfiguration<O>, InputManagedObjectConfiguration<O>
DependencyMappingBuilder implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyMappingBuilderImpl(String boundManagedObjectName) Initiate as anInputManagedObjectConfiguration.DependencyMappingBuilderImpl(String boundManagedObjectName, String officeManagedObjectName) Initiate as aManagedObjectConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionObtains the listing ofManagedObjectDependencyConfigurationinstances.Obtains the listing ofManagedObjectGovernanceConfigurationinstances.Obtains the name of theManagedObjectregistered within theOffice.<T> OptionalThreadLocal<T>Obtains theOptionalThreadLocalfor theManagedObject.AdministrationConfiguration<?,?, ?>[] Obtains the listing of theAdministrationto be done before theManagedObjectis loaded.Obtains theThreadLocalConfiguration.voidmapDependency(int index, String scopeManagedObjectName) Specifies theManagedObjectfor the index identifying the dependency.<d extends Enum<d>>
voidmapDependency(d 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.
-
Constructor Details
-
DependencyMappingBuilderImpl
Initiate as aManagedObjectConfiguration.- Parameters:
boundManagedObjectName- Name of theManagedObjectis being bound.officeManagedObjectName- Name of theManagedObjectwithin theOffice.
-
DependencyMappingBuilderImpl
Initiate as anInputManagedObjectConfiguration.- Parameters:
boundManagedObjectName- Name of theManagedObjectis being bound.
-
-
Method Details
-
mapDependency
Description copied from interface:DependencyMappingBuilderSpecifies theManagedObjectfor the dependency key.- Specified by:
mapDependencyin interfaceDependencyMappingBuilder- Type Parameters:
d- Dependency key type.- Parameters:
key- Key of the dependency.scopeManagedObjectName- Name of theManagedObjectwithin the scope that thisDependencyMappingBuilderwas created.
-
mapDependency
Description copied from interface:DependencyMappingBuilderSpecifies theManagedObjectfor the index identifying the dependency.- Specified by:
mapDependencyin interfaceDependencyMappingBuilder- Parameters:
index- Index identifying the dependency.scopeManagedObjectName- Name of theManagedObjectwithin the scope that thisDependencyMappingBuilderwas created.
-
mapGovernance
Description copied from interface:DependencyMappingBuilderSpecifies theGovernancefor theManagedObject.- Specified by:
mapGovernancein interfaceDependencyMappingBuilder- Parameters:
governanceName- Name of theGovernancewithin theOffice.
-
preLoadAdminister
public <E,f extends Enum<f>, AdministrationBuilder<f,G extends Enum<G>> G> preLoadAdminister(String administrationName, Class<E> extension, AdministrationFactory<E, f, G> administrationFactory) Description copied from interface:DependencyMappingBuilderAddsAdministrationto be undertaken before thisManagedObjectis loaded.- Specified by:
preLoadAdministerin interfaceDependencyMappingBuilder- 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.
-
getOptionalThreadLocal
Description copied from interface:ThreadDependencyMappingBuilderObtains theOptionalThreadLocalfor theManagedObject.- Specified by:
getOptionalThreadLocalin interfaceThreadDependencyMappingBuilder- Type Parameters:
T- Type of object.- Returns:
OptionalThreadLocalfor theManagedObject.
-
getBoundManagedObjectName
Description copied from interface:ManagedObjectConfiguration- Specified by:
getBoundManagedObjectNamein interfaceInputManagedObjectConfiguration<O extends Enum<O>>- Specified by:
getBoundManagedObjectNamein interfaceManagedObjectConfiguration<O extends Enum<O>>- Returns:
- Name of the
ManagedObjectbound to eitherProcessStateorThreadState.
-
getOfficeManagedObjectName
Description copied from interface:ManagedObjectConfigurationObtains the name of theManagedObjectregistered within theOffice.- Specified by:
getOfficeManagedObjectNamein interfaceManagedObjectConfiguration<O extends Enum<O>>- Returns:
- Name of the
ManagedObjectregistered within theOffice.
-
getDependencyConfiguration
Description copied from interface:ManagedObjectConfigurationObtains the listing ofManagedObjectDependencyConfigurationinstances.- Specified by:
getDependencyConfigurationin interfaceInputManagedObjectConfiguration<O extends Enum<O>>- Specified by:
getDependencyConfigurationin interfaceManagedObjectConfiguration<O extends Enum<O>>- Returns:
ManagedObjectDependencyConfigurationinstances.
-
getGovernanceConfiguration
Description copied from interface:ManagedObjectConfigurationObtains the listing ofManagedObjectGovernanceConfigurationinstances.- Specified by:
getGovernanceConfigurationin interfaceInputManagedObjectConfiguration<O extends Enum<O>>- Specified by:
getGovernanceConfigurationin interfaceManagedObjectConfiguration<O extends Enum<O>>- Returns:
ManagedObjectGovernanceConfigurationinstances.
-
getPreLoadAdministration
Description copied from interface:ManagedObjectConfigurationObtains the listing of theAdministrationto be done before theManagedObjectis loaded.- Specified by:
getPreLoadAdministrationin interfaceInputManagedObjectConfiguration<O extends Enum<O>>- Specified by:
getPreLoadAdministrationin interfaceManagedObjectConfiguration<O extends Enum<O>>- Returns:
- Listing of the
Administrationto be done before theManagedObjectis loaded.
-
getThreadLocalConfiguration
Description copied from interface:ManagedObjectConfigurationObtains theThreadLocalConfiguration.- Specified by:
getThreadLocalConfigurationin interfaceInputManagedObjectConfiguration<O extends Enum<O>>- Specified by:
getThreadLocalConfigurationin interfaceManagedObjectConfiguration<O extends Enum<O>>- Returns:
ThreadLocalConfigurationornullif not bound toThread.
-