org.objectweb.speedo.metadata
Class SpeedoDefaults

java.lang.Object
  extended by org.objectweb.speedo.metadata.SpeedoDefaults
Direct Known Subclasses:
EJBDefaults, JDODefaults

public abstract class SpeedoDefaults
extends java.lang.Object

Is an helper class for loading default value of speedo meta objects.

Author:
S.Chassande-Barrioz

Constructor Summary
SpeedoDefaults()
           
 
Method Summary
abstract  void assignDefaults(java.lang.Object se)
          This abstract method should initiaze a speedo meta Object.
static void init(Personality p)
          Initializes the defaults field with regards to the current personality
static void setDefaults(java.lang.Object se)
          Set the default value for a Speedo Meta Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpeedoDefaults

public SpeedoDefaults()
Method Detail

assignDefaults

public abstract void assignDefaults(java.lang.Object se)
                             throws SpeedoRuntimeException
This abstract method should initiaze a speedo meta Object.

Parameters:
se - the speedo meta object to initialize.
Throws:
SpeedoRuntimeException

init

public static void init(Personality p)
                 throws SpeedoException
Initializes the defaults field with regards to the current personality

Parameters:
p - the current personality
Throws:
SpeedoException

setDefaults

public static void setDefaults(java.lang.Object se)
                        throws SpeedoRuntimeException
Set the default value for a Speedo Meta Object.

Parameters:
se - the meta object to initiaze with default value of the current personality.
Throws:
SpeedoRuntimeException