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
addFunctionEnhancer(ManagedObjectFunctionEnhancer functionEnhancer)
Adds aManagedObjectFunctionEnhancer
.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
completevoid
startupAfter(java.lang.String managedObjectSourceName)
Flags for thisManagedObjectSource
to be started after the specified namedManagedObjectSource
.void
startupBefore(java.lang.String managedObjectSourceName)
Flags for thisManagedObjectSource
to 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 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
.
-
addFunctionEnhancer
void addFunctionEnhancer(ManagedObjectFunctionEnhancer functionEnhancer)
Adds aManagedObjectFunctionEnhancer
.- Parameters:
functionEnhancer
-ManagedObjectFunctionEnhancer
.
-
startupBefore
void startupBefore(java.lang.String managedObjectSourceName)
Flags for thisManagedObjectSource
to be started before the specified namedManagedObjectSource
.- Parameters:
managedObjectSourceName
- Name ofManagedObjectSource
to be started after thisManagedObjectSource
.
-
startupAfter
void startupAfter(java.lang.String managedObjectSourceName)
Flags for thisManagedObjectSource
to be started after the specified namedManagedObjectSource
.- Parameters:
managedObjectSourceName
- Name ofManagedObjectSource
to be started before thisManagedObjectSource
.
-
-