info.magnolia.importexport
Class Bootstrapper

java.lang.Object
  extended by info.magnolia.importexport.Bootstrapper

public final class Bootstrapper
extends Object

Bootstrapper: loads content from xml when a magnolia is started with an uninitialized repository.

Version:
$Revision: 49479 $ ($Author: ndesmarais $)
Author:
Fabrizio Giustina

Nested Class Summary
static interface Bootstrapper.BootstrapFilter
          Filter used to provide an additional filtering for the bootstrap files.
 
Method Summary
static void bootstrapRepositories(String[] bootdirs, Bootstrapper.BootstrapFilter filter)
          Repositories appears to be empty and the "magnolia.bootstrap.dir directory is configured in web.xml.
static boolean bootstrapRepository(String[] bootdirs, String repositoryName, Bootstrapper.BootstrapFilter filter)
          Bootstrap a specific repository.
static String[] getBootstrapDirs()
          Return the standard bootstrap dirs defined in the magnolia.properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bootstrapRepositories

public static void bootstrapRepositories(String[] bootdirs,
                                         Bootstrapper.BootstrapFilter filter)
Repositories appears to be empty and the "magnolia.bootstrap.dir directory is configured in web.xml. Loops over all the repositories and try to load any xml file found in a subdirectory with the same name of the repository. For example the config repository will be initialized using all the *.xml files found in "magnolia.bootstrap.dir/config directory.

Parameters:
bootdirs - bootstrap dir

bootstrapRepository

public static boolean bootstrapRepository(String[] bootdirs,
                                          String repositoryName,
                                          Bootstrapper.BootstrapFilter filter)
Bootstrap a specific repository.


getBootstrapDirs

public static String[] getBootstrapDirs()
Return the standard bootstrap dirs defined in the magnolia.properties file.

Returns:
Array of directory names


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.