Package net.officefloor.frame.api.build
Interface ManagedObjectBuilder<F extends Enum<F>>
- All Known Implementing Classes:
ManagedObjectBuilderImpl
public interface ManagedObjectBuilder<F extends Enum<F>>
Builder of a
ManagedObject.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalProfile(String profile) Adds an additional profile.voidaddFunctionEnhancer(ManagedObjectFunctionEnhancer functionEnhancer) Adds aManagedObjectFunctionEnhancer.voidaddProperty(String name, String value) Specifies a property for theManagedObjectSource.setManagedObjectPool(ManagedObjectPoolFactory poolFactory) Specifies theManagedObjectPoolFactoryfor thisManagedObject.setManagingOffice(String officeName) Specifies theOfficeto manage thisManagedObject.voidsetTimeout(long timeout) Specifies the timeout to: to source theManagedObjecthave asynchronous operations on theManagedObjectcompletevoidstartupAfter(String managedObjectSourceName) Flags for thisManagedObjectSourceto be started after the specified namedManagedObjectSource.voidstartupBefore(String managedObjectSourceName) Flags for thisManagedObjectSourceto be started before the specified namedManagedObjectSource.
-
Method Details
-
addProperty
Specifies a property for theManagedObjectSource.- Parameters:
name- Name of property.value- Value of property.
-
addAdditionalProfile
Adds an additional profile.- Parameters:
profile- Additional profile.
-
setManagedObjectPool
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
Specifies theOfficeto manage thisManagedObject.- Parameters:
officeName- Name of theOffice.- Returns:
ManagingOfficeBuilder.
-
addFunctionEnhancer
Adds aManagedObjectFunctionEnhancer.- Parameters:
functionEnhancer-ManagedObjectFunctionEnhancer.
-
startupBefore
Flags for thisManagedObjectSourceto be started before the specified namedManagedObjectSource.- Parameters:
managedObjectSourceName- Name ofManagedObjectSourceto be started after thisManagedObjectSource.
-
startupAfter
Flags for thisManagedObjectSourceto be started after the specified namedManagedObjectSource.- Parameters:
managedObjectSourceName- Name ofManagedObjectSourceto be started before thisManagedObjectSource.
-