Keel 2.1RC2

org.keel.services.model
Class StandardModel

java.lang.Object
  extended byorg.keel.services.model.StandardModel
All Implemented Interfaces:
Configurable, Model
Direct Known Subclasses:
PromptChangePassword, PromptRegistration, PromptSendPassword, Register, StandardLogEnabledModel

public abstract class StandardModel
extends java.lang.Object
implements Model, Configurable

This is an abstract class used for convenience of creating Model classes. Primarily it provides a model with the capability to configure itself according to the Avalon style, as well as provide a method to retrieve the configuration.

Version:
$Revision: 1.2 $ $Date: 2003/07/03 15:49:32 $
Author:
Shash Chatterjee Created on Oct 17, 2002

Field Summary
protected  Configuration configuration
           
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
StandardModel()
           
 
Method Summary
 void configure(Configuration configuration)
          Pass the Configuration to the Configurable class.
 Configuration getConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.keel.services.model.Model
execute
 

Field Detail

configuration

protected Configuration configuration
Constructor Detail

StandardModel

public StandardModel()
Method Detail

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Description copied from interface: Configurable
Pass the Configuration to the Configurable class.

Specified by:
configure in interface Configurable
Parameters:
configuration - the class configurations. Must not be null.
Throws:
ConfigurationException - if an error occurs
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

getConfiguration

public Configuration getConfiguration()
Specified by:
getConfiguration in interface Model

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.