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.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 theManagedObjectcomplete
-
-
-
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.
-
-