Package net.officefloor.frame.api.build
Interface ManagedObjectBuilder<F extends java.lang.Enum<F>>
-
- All Known Implementing Classes:
ManagedObjectBuilderImpl
public interface ManagedObjectBuilder<F extends java.lang.Enum<F>>Builder of aManagedObject.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAdditionalProfile(java.lang.String profile)Adds an additional profile.voidaddFunctionEnhancer(ManagedObjectFunctionEnhancer functionEnhancer)Adds aManagedObjectFunctionEnhancer.voidaddProperty(java.lang.String name, java.lang.String value)Specifies a property for theManagedObjectSource.ManagedObjectPoolBuildersetManagedObjectPool(ManagedObjectPoolFactory poolFactory)Specifies theManagedObjectPoolFactoryfor thisManagedObject.ManagingOfficeBuilder<F>setManagingOffice(java.lang.String officeName)Specifies theOfficeto manage thisManagedObject.voidsetTimeout(long timeout)Specifies the timeout to: to source theManagedObjecthave asynchronous operations on theManagedObjectcompletevoidstartupAfter(java.lang.String managedObjectSourceName)Flags for thisManagedObjectSourceto be started after the specified namedManagedObjectSource.voidstartupBefore(java.lang.String managedObjectSourceName)Flags for thisManagedObjectSourceto be started before the specified namedManagedObjectSource.
-
-
-
Method Detail
-
addProperty
void addProperty(java.lang.String name, java.lang.String value)Specifies a property for theManagedObjectSource.- Parameters:
name- Name of property.value- Value of property.
-
addAdditionalProfile
void addAdditionalProfile(java.lang.String profile)
Adds an additional profile.- Parameters:
profile- Additional profile.
-
setManagedObjectPool
ManagedObjectPoolBuilder setManagedObjectPool(ManagedObjectPoolFactory poolFactory)
Specifies theManagedObjectPoolFactoryfor thisManagedObject.- Parameters:
poolFactory-ManagedObjectPoolFactoryfor thisManagedObject.- Returns:
ManagedObjectPoolBuilder.
-
setTimeout
void setTimeout(long timeout)
Specifies the timeout to:- to source the
ManagedObject - have asynchronous operations on the
ManagedObjectcomplete
- Parameters:
timeout- Timeout.
- to source the
-
setManagingOffice
ManagingOfficeBuilder<F> setManagingOffice(java.lang.String officeName)
Specifies theOfficeto manage thisManagedObject.- Parameters:
officeName- Name of theOffice.- Returns:
ManagingOfficeBuilder.
-
addFunctionEnhancer
void addFunctionEnhancer(ManagedObjectFunctionEnhancer functionEnhancer)
Adds aManagedObjectFunctionEnhancer.- Parameters:
functionEnhancer-ManagedObjectFunctionEnhancer.
-
startupBefore
void startupBefore(java.lang.String managedObjectSourceName)
Flags for thisManagedObjectSourceto be started before the specified namedManagedObjectSource.- Parameters:
managedObjectSourceName- Name ofManagedObjectSourceto be started after thisManagedObjectSource.
-
startupAfter
void startupAfter(java.lang.String managedObjectSourceName)
Flags for thisManagedObjectSourceto be started after the specified namedManagedObjectSource.- Parameters:
managedObjectSourceName- Name ofManagedObjectSourceto be started before thisManagedObjectSource.
-
-