net.sf.farrago.test
Class FarragoTestPersonalityFactory

java.lang.Object
  extended by net.sf.farrago.test.FarragoTestPersonalityFactory
All Implemented Interfaces:
FarragoSessionPersonalityFactory

public class FarragoTestPersonalityFactory
extends Object
implements FarragoSessionPersonalityFactory

FarragoTestPersonalityFactory implements the FarragoSessionPersonalityFactory interface with some tweaks just for testing.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/FarragoTestPersonalityFactory.java#9 $
Author:
John V. Sichi

Nested Class Summary
static class FarragoTestPersonalityFactory.FarragoTestRelMetadataProvider
           
private static class FarragoTestPersonalityFactory.FarragoTestSessionPersonality
           
 
Constructor Summary
FarragoTestPersonalityFactory()
           
 
Method Summary
 FarragoSessionPersonality newSessionPersonality(FarragoSession session, FarragoSessionPersonality defaultPersonality)
          Creates a new session personality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FarragoTestPersonalityFactory

public FarragoTestPersonalityFactory()
Method Detail

newSessionPersonality

public FarragoSessionPersonality newSessionPersonality(FarragoSession session,
                                                       FarragoSessionPersonality defaultPersonality)
Description copied from interface: FarragoSessionPersonalityFactory
Creates a new session personality.

Specified by:
newSessionPersonality in interface FarragoSessionPersonalityFactory
Parameters:
session - session for which personality is being created; note that the personality may be used for other sessions as well, so no reference to this session should be retained
defaultPersonality - a default personality to which the new personality may delegate, or null if no default is available
Returns:
personality