planet.generic.commonapi.behaviours
Class BehavioursFactoryImpl

java.lang.Object
  extended byplanet.generic.commonapi.behaviours.BehavioursFactoryImpl
All Implemented Interfaces:
BehavioursFactory, java.io.Serializable

public class BehavioursFactoryImpl
extends java.lang.Object
implements BehavioursFactory

This class provides an implementation of BehavioursFactory interface.

Author:
Marc Sanchez, Jordi Pujol 07-jul-2005
See Also:
Serialized Form

Constructor Summary
BehavioursFactoryImpl()
          Empty constructor, it does nothing.
 
Method Summary
 BehavioursFilter buildBehavioursFilter()
          Builds a new instance of the current implementation of BehavioursFilter.
 BehavioursInvoker buildBehavioursInvoker()
          Builds a new instance of the current implementation of BehavioursInvoker.
 BehavioursPattern buildBehavioursPattern()
          Builds a new instance of the current implementation of BehavioursPattern.
 BehavioursPool buildBehavioursPool()
          Builds a new instance of the current implementation of BehavioursPool.
 BehavioursRoleSelector buildBehavioursRoleSelector()
          Builds a new instance of the current implementation of BehavioursRoleSelector.
 BehavioursFactory setValues(java.lang.Class pool, java.lang.Class filter, java.lang.Class invoker, java.lang.Class pattern, java.lang.Class roleSelector)
          Sets the initial values for this BehavioursFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BehavioursFactoryImpl

public BehavioursFactoryImpl()
Empty constructor, it does nothing. It requires the setValues(...) invokation.

Method Detail

setValues

public BehavioursFactory setValues(java.lang.Class pool,
                                   java.lang.Class filter,
                                   java.lang.Class invoker,
                                   java.lang.Class pattern,
                                   java.lang.Class roleSelector)
                            throws InitializationException
Sets the initial values for this BehavioursFactory.

Specified by:
setValues in interface BehavioursFactory
Parameters:
pool - BehavioursPool class reference.
filter - BehavioursFilter class reference.
invoker - BehavioursInvoker class reference.
pattern - BehavioursPattern class reference.
roleSelector - BehavioursRoleSelector class reference.
Returns:
The same instance once it has been updated.
Throws:
InitializationException - if some error occurs during the initialization process.

buildBehavioursPool

public BehavioursPool buildBehavioursPool()
                                   throws InitializationException
Builds a new instance of the current implementation of BehavioursPool.

Specified by:
buildBehavioursPool in interface BehavioursFactory
Returns:
A new instance of BehavioursPool.
Throws:
InitializationException - when an error occurs during the initialization of the BehavioursPool or when this factory method is nonapplicable, because the current overlay doesn't use behaviours.

buildBehavioursFilter

public BehavioursFilter buildBehavioursFilter()
                                       throws InitializationException
Builds a new instance of the current implementation of BehavioursFilter.

Specified by:
buildBehavioursFilter in interface BehavioursFactory
Returns:
A new instance of BehavioursFilter.
Throws:
InitializationException - when an error occurs during the initialization of the BehavioursFilter or when this factory method is nonapplicable, because the current overlay doesn't use behaviours.
See Also:
BehavioursFactory.buildBehavioursFilter()

buildBehavioursInvoker

public BehavioursInvoker buildBehavioursInvoker()
                                         throws InitializationException
Builds a new instance of the current implementation of BehavioursInvoker.

Specified by:
buildBehavioursInvoker in interface BehavioursFactory
Returns:
A new instance of BehavioursInvoker.
Throws:
InitializationException - when an error occurs during the initialization of the BehavioursInvoker or when this factory method is nonapplicable, because the current overlay doesn't use behaviours.
See Also:
BehavioursFactory.buildBehavioursInvoker()

buildBehavioursPattern

public BehavioursPattern buildBehavioursPattern()
                                         throws InitializationException
Builds a new instance of the current implementation of BehavioursPattern.

Specified by:
buildBehavioursPattern in interface BehavioursFactory
Returns:
A new instance of BehavioursPattern.
Throws:
InitializationException - when an error occurs during the initialization of the BehavioursPattern or when this factory method is nonapplicable, because the current overlay doesn't use behaviours.
See Also:
BehavioursFactory.buildBehavioursPattern()

buildBehavioursRoleSelector

public BehavioursRoleSelector buildBehavioursRoleSelector()
                                                   throws InitializationException
Builds a new instance of the current implementation of BehavioursRoleSelector.

Specified by:
buildBehavioursRoleSelector in interface BehavioursFactory
Returns:
A new instance of BehavioursRoleSelector.
Throws:
InitializationException - when an error occurs during the initialization of the BehavioursRoleSelector or when this factory method is nonapplicable, because the current overlay doesn't use behaviours.
See Also:
BehavioursFactory.buildBehavioursRoleSelector()