com.arsdigita.runtime
Class PDLInitializer

java.lang.Object
  extended bycom.arsdigita.runtime.PDLInitializer
All Implemented Interfaces:
Initializer

public class PDLInitializer
extends Object
implements Initializer

The PDLInitializer class provides an implementation of the Initializer interface that works in conjunction with the PDLSource interface and implementations thereof in order to provide a convenient way to initialize object-relational metadata. This class is most convenient when used in conjunction with the CompoundInitializer class. For example:

package com.arsdigita.exampleApp; public class Initializer extends CompoundInitializer { public Initializer() { final String url = RuntimeConfig.getConfig().getJDBCURL(); final int database = DbHelper.getDatabaseFromURL(url); add(new PDLInitializer (new ManifestSource ("example-app.pdl.mf", new NameFilter(DbHelper.getDatabaseSuffix(database), "pdl")))); } }
The class defined above will load all the object-relational metadata for the current database referenced from the example-app.pdl.mf manifest file.

Version:
$Revision: #5 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Field Summary
static String versionId
           
 
Constructor Summary
PDLInitializer(PDLSource source)
          Constructs a new implementation of the Initializer interface that will upon invokation load any object-relational metadata referenced by the given PDLSource.
 
Method Summary
 void init(DataInitEvent evt)
          An implementation of the Initializer.init(DataInitEvent) that loads the object-relational metadata from the PDLSource specified during construction of this PDLInitializer.
 void init(DomainInitEvent evt)
          An empty implementation of Initializer.init(DomainInitEvent).
 void init(LegacyInitEvent evt)
          An empty implementation of Initializer.init(LegacyInitEvent).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

PDLInitializer

public PDLInitializer(PDLSource source)
Constructs a new implementation of the Initializer interface that will upon invokation load any object-relational metadata referenced by the given PDLSource.

Parameters:
source - The object-relational metadata to load.
Method Detail

init

public void init(DataInitEvent evt)
An implementation of the Initializer.init(DataInitEvent) that loads the object-relational metadata from the PDLSource specified during construction of this PDLInitializer.

Specified by:
init in interface Initializer
Parameters:
evt - A context object with accessors for data initialization

init

public void init(DomainInitEvent evt)
An empty implementation of Initializer.init(DomainInitEvent).

Specified by:
init in interface Initializer
Parameters:
evt - A context object with accessors for domain initialization
See Also:
DomainObjectInstantiator, DomainObjectFactory, GlobalObserver, GlobalObserverManager

init

public void init(LegacyInitEvent evt)
An empty implementation of Initializer.init(LegacyInitEvent).

Specified by:
init in interface Initializer


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC