Class DependencyMappingBuilderImpl<O extends java.lang.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 java.lang.Enum<O>> extends java.lang.Object implements DependencyMappingBuilder, ThreadDependencyMappingBuilder, ManagedObjectConfiguration<O>, InputManagedObjectConfiguration<O>
DependencyMappingBuilderimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description DependencyMappingBuilderImpl(java.lang.String boundManagedObjectName)Initiate as anInputManagedObjectConfiguration.DependencyMappingBuilderImpl(java.lang.String boundManagedObjectName, java.lang.String officeManagedObjectName)Initiate as aManagedObjectConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBoundManagedObjectName()ManagedObjectDependencyConfiguration<O>[]getDependencyConfiguration()Obtains the listing ofManagedObjectDependencyConfigurationinstances.ManagedObjectGovernanceConfiguration[]getGovernanceConfiguration()Obtains the listing ofManagedObjectGovernanceConfigurationinstances.java.lang.StringgetOfficeManagedObjectName()Obtains the name of theManagedObjectregistered within theOffice.<T> OptionalThreadLocal<T>getOptionalThreadLocal()Obtains theOptionalThreadLocalfor theManagedObject.AdministrationConfiguration<?,?,?>[]getPreLoadAdministration()Obtains the listing of theAdministrationto be done before theManagedObjectis loaded.ThreadLocalConfigurationgetThreadLocalConfiguration()Obtains theThreadLocalConfiguration.voidmapDependency(int index, java.lang.String scopeManagedObjectName)Specifies theManagedObjectfor the index identifying the dependency.<d extends java.lang.Enum<d>>
voidmapDependency(d 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.
-
-
-
Constructor Detail
-
DependencyMappingBuilderImpl
public DependencyMappingBuilderImpl(java.lang.String boundManagedObjectName, java.lang.String officeManagedObjectName)Initiate as aManagedObjectConfiguration.- Parameters:
boundManagedObjectName- Name of theManagedObjectis being bound.officeManagedObjectName- Name of theManagedObjectwithin theOffice.
-
DependencyMappingBuilderImpl
public DependencyMappingBuilderImpl(java.lang.String boundManagedObjectName)
Initiate as anInputManagedObjectConfiguration.- Parameters:
boundManagedObjectName- Name of theManagedObjectis being bound.
-
-
Method Detail
-
mapDependency
public <d extends java.lang.Enum<d>> void mapDependency(d key, java.lang.String scopeManagedObjectName)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
public void mapDependency(int index, java.lang.String scopeManagedObjectName)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
public void mapGovernance(java.lang.String governanceName)
Description copied from interface:DependencyMappingBuilderSpecifies theGovernancefor theManagedObject.- Specified by:
mapGovernancein interfaceDependencyMappingBuilder- Parameters:
governanceName- Name of theGovernancewithin theOffice.
-
preLoadAdminister
public <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)
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
public <T> OptionalThreadLocal<T> getOptionalThreadLocal()
Description copied from interface:ThreadDependencyMappingBuilderObtains theOptionalThreadLocalfor theManagedObject.- Specified by:
getOptionalThreadLocalin interfaceThreadDependencyMappingBuilder- Type Parameters:
T- Type of object.- Returns:
OptionalThreadLocalfor theManagedObject.
-
getBoundManagedObjectName
public java.lang.String getBoundManagedObjectName()
Description copied from interface:ManagedObjectConfiguration- Specified by:
getBoundManagedObjectNamein interfaceInputManagedObjectConfiguration<O extends java.lang.Enum<O>>- Specified by:
getBoundManagedObjectNamein interfaceManagedObjectConfiguration<O extends java.lang.Enum<O>>- Returns:
- Name of the
ManagedObjectbound to eitherProcessStateorThreadState.
-
getOfficeManagedObjectName
public java.lang.String getOfficeManagedObjectName()
Description copied from interface:ManagedObjectConfigurationObtains the name of theManagedObjectregistered within theOffice.- Specified by:
getOfficeManagedObjectNamein interfaceManagedObjectConfiguration<O extends java.lang.Enum<O>>- Returns:
- Name of the
ManagedObjectregistered within theOffice.
-
getDependencyConfiguration
public ManagedObjectDependencyConfiguration<O>[] getDependencyConfiguration()
Description copied from interface:ManagedObjectConfigurationObtains the listing ofManagedObjectDependencyConfigurationinstances.- Specified by:
getDependencyConfigurationin interfaceInputManagedObjectConfiguration<O extends java.lang.Enum<O>>- Specified by:
getDependencyConfigurationin interfaceManagedObjectConfiguration<O extends java.lang.Enum<O>>- Returns:
ManagedObjectDependencyConfigurationinstances.
-
getGovernanceConfiguration
public ManagedObjectGovernanceConfiguration[] getGovernanceConfiguration()
Description copied from interface:ManagedObjectConfigurationObtains the listing ofManagedObjectGovernanceConfigurationinstances.- Specified by:
getGovernanceConfigurationin interfaceInputManagedObjectConfiguration<O extends java.lang.Enum<O>>- Specified by:
getGovernanceConfigurationin interfaceManagedObjectConfiguration<O extends java.lang.Enum<O>>- Returns:
ManagedObjectGovernanceConfigurationinstances.
-
getPreLoadAdministration
public AdministrationConfiguration<?,?,?>[] getPreLoadAdministration()
Description copied from interface:ManagedObjectConfigurationObtains the listing of theAdministrationto be done before theManagedObjectis loaded.- Specified by:
getPreLoadAdministrationin interfaceInputManagedObjectConfiguration<O extends java.lang.Enum<O>>- Specified by:
getPreLoadAdministrationin interfaceManagedObjectConfiguration<O extends java.lang.Enum<O>>- Returns:
- Listing of the
Administrationto be done before theManagedObjectis loaded.
-
getThreadLocalConfiguration
public ThreadLocalConfiguration getThreadLocalConfiguration()
Description copied from interface:ManagedObjectConfigurationObtains theThreadLocalConfiguration.- Specified by:
getThreadLocalConfigurationin interfaceInputManagedObjectConfiguration<O extends java.lang.Enum<O>>- Specified by:
getThreadLocalConfigurationin interfaceManagedObjectConfiguration<O extends java.lang.Enum<O>>- Returns:
ThreadLocalConfigurationornullif not bound toThread.
-
-