public class BlackboardFactoryImpl extends java.lang.Object implements BlackboardFactory
Constructor and Description |
---|
BlackboardFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(ComponentContext context) |
Blackboard |
createBlackboard(boolean useRecordStorage,
boolean useBinaryStorage)
creates a blackboard.
|
Blackboard |
createPersistingBlackboard()
create a new persisting blackboard instance.
|
Blackboard |
createTransientBlackboard()
create a new non-persisting blackboard instance.
|
void |
setBinaryStorage(BinaryStorageService binaryStorage)
Set the binary service for blackboard.
|
void |
setRecordStorage(RecordStorage recordStorage)
Set the record service for blackboard.
|
void |
unsetBinaryStorage(BinaryStorageService binaryStorage)
Un-set the binary storage service.
|
void |
unsetRecordStorage(RecordStorage recordStorage)
Un-set the record storage service.
|
public Blackboard createBlackboard(boolean useRecordStorage, boolean useBinaryStorage) throws BlackboardAccessException
createBlackboard
in interface BlackboardFactory
useRecordStorage
- if true
, the records will be stored using the RecordStorage service.useBinaryStorage
- if true
, the attachments will be stored using the BinaryStorage service.BlackboardAccessException
- could not create the blackboard, or one of the desired services is not available.public Blackboard createPersistingBlackboard() throws BlackboardAccessException
createPersistingBlackboard
in interface BlackboardFactory
BlackboardAccessException
- could not create the blackboard, or no binary storage service is available.public Blackboard createTransientBlackboard()
createTransientBlackboard
in interface BlackboardFactory
protected void activate(ComponentContext context)
public void setRecordStorage(RecordStorage recordStorage)
recordStorage
- RecordStorage - the record storage service interfacepublic void unsetRecordStorage(RecordStorage recordStorage)
recordStorage
- RecordStorage - the record storage service interfacepublic void setBinaryStorage(BinaryStorageService binaryStorage)
binaryStorage
- BinaryStorageService - the binary storage service interfacepublic void unsetBinaryStorage(BinaryStorageService binaryStorage)
binaryStorage
- -