SMILA (incubation) API documentation

org.eclipse.smila.blackboard.impl
Class BlackboardFactoryImpl

java.lang.Object
  extended by org.eclipse.smila.blackboard.impl.BlackboardFactoryImpl
All Implemented Interfaces:
BlackboardFactory

public class BlackboardFactoryImpl
extends java.lang.Object
implements BlackboardFactory

Author:
jschumacher

Constructor Summary
BlackboardFactoryImpl()
           
 
Method Summary
protected  void activate(ComponentContext context)
          
 Blackboard createPersistingBlackboard()
          create a blackboard able to persist records in storages.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlackboardFactoryImpl

public BlackboardFactoryImpl()
Method Detail

createPersistingBlackboard

public Blackboard createPersistingBlackboard()
                                      throws BlackboardAccessException
create a blackboard able to persist records in storages.

Specified by:
createPersistingBlackboard in interface BlackboardFactory
Returns:
blackboard instance that persist into configured storages.
Throws:
BlackboardAccessException - no persisting blackboard can be created, because not even a binary storage service is available (record storage remains optional)
See Also:
BlackboardFactory.createPersistingBlackboard()

createTransientBlackboard

public Blackboard createTransientBlackboard()
create a new non-persisting blackboard instance. This method must always return a valid empty blackboard instance.

Specified by:
createTransientBlackboard in interface BlackboardFactory
Returns:
blackboard instance that does not persist into storages.
See Also:
BlackboardFactory.createTransientBlackboard()

activate

protected void activate(ComponentContext context)


setRecordStorage

public void setRecordStorage(RecordStorage recordStorage)
Set the record service for blackboard. To be used by Declarative Services as the bind method.

Parameters:
recordStorage - RecordStorage - the record storage service interface

unsetRecordStorage

public void unsetRecordStorage(RecordStorage recordStorage)
Un-set the record storage service. To be used by Declarative Services as the un-bind method.

Parameters:
recordStorage - RecordStorage - the record storage service interface

setBinaryStorage

public void setBinaryStorage(BinaryStorageService binaryStorage)
Set the binary service for blackboard. To be used by Declarative Services as the bind method.

Parameters:
binaryStorage - BinaryStorageService - the binary storage service interface

unsetBinaryStorage

public void unsetBinaryStorage(BinaryStorageService binaryStorage)
Un-set the binary storage service. To be used by Declarative Services as the un-bind method.

Parameters:
binaryStorage - -

SMILA (incubation) API documentation