|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.runtime.CompoundInitializer
com.arsdigita.runtime.Startup
An entry point initializer for the CCM runtime. This class may be used to bootstrap the CCM runtime environment into a state where it is safe to perform database I/O. It does this by accessing a persistent list of all the initializers required by the currently loaded packages. This guarantees that any of these packages has the opportunity to load any object-relational metadata and register any domain-data coupling metadata before any database I/O is performed.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
Startup()
Constructs a new startup by defaulting the connection source to a dedicated connection source that uses the JDBC URL specified by the waf.runtime.jdbc_url parameter. |
|
Startup(ConnectionSource source)
Prepares a startup object with a list of child Initializers to run in order to initialize the
runtime. |
Method Summary | |
protected void |
addRuntimeInitializers()
|
protected Collection |
getRuntimeInitializerNames()
Fetches the names of initializers loaded into the database. |
static boolean |
hasRun()
|
static void |
main(String[] args)
|
void |
run()
Executes the initialization process using the default session and global metadata root. |
static void |
run(Session session,
Initializer init)
Executes the initialization process. |
Methods inherited from class com.arsdigita.runtime.CompoundInitializer |
add, init, init, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public Startup()
public Startup(ConnectionSource source)
Initializers
to run in order to initialize the
runtime. This method relies on a caller-provided connection
source.
source
- The connection source used to recover the list of
initializers from the database; it cannot be null.Method Detail |
protected void addRuntimeInitializers()
protected Collection getRuntimeInitializerNames()
public static final void run(Session session, Initializer init)
public final void run()
MetadataRoot.getMetadataRoot()
,
SessionManager.getSession()
public static boolean hasRun()
public static final void main(String[] args) throws SQLException
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |