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 void
addAdditionalProfile(java.lang.String profile)
Adds an additional profile.void
addProperty(java.lang.String name, java.lang.String value)
Specifies a property for theManagedObjectSource
.ManagedObjectPoolBuilder
setManagedObjectPool(ManagedObjectPoolFactory poolFactory)
Specifies theManagedObjectPoolFactory
for thisManagedObject
.ManagingOfficeBuilder<F>
setManagingOffice(java.lang.String officeName)
Specifies theOffice
to manage thisManagedObject
.void
setTimeout(long timeout)
Specifies the timeout to: to source theManagedObject
have asynchronous operations on theManagedObject
complete
-
-
-
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 theManagedObjectPoolFactory
for thisManagedObject
.- Parameters:
poolFactory
-ManagedObjectPoolFactory
for thisManagedObject
.- Returns:
ManagedObjectPoolBuilder
.
-
setTimeout
void setTimeout(long timeout)
Specifies the timeout to:- to source the
ManagedObject
- have asynchronous operations on the
ManagedObject
complete
- Parameters:
timeout
- Timeout.
- to source the
-
setManagingOffice
ManagingOfficeBuilder<F> setManagingOffice(java.lang.String officeName)
Specifies theOffice
to manage thisManagedObject
.- Parameters:
officeName
- Name of theOffice
.- Returns:
ManagingOfficeBuilder
.
-
-