org.weborganic.berlioz.content
Class ContentManager

java.lang.Object
  extended by org.weborganic.berlioz.content.ContentManager

public final class ContentManager
extends Object

A utility class to provide access to the content of generators.

Since:
Berlioz 0.6
Version:
Berlioz 0.9.26 - 16 December 2013
Author:
Christophe Lauret

Method Summary
static void clear()
          Update the patterns based on the current generators.
static ServiceRegistry getDefaultRegistry()
          Returns the default service registry (mapped to "services.xml").
static List<File> getServiceFiles()
           
static void load()
          Loads the content access file from all services files.
static void load(File xml)
          Loads the content access file.
static void loadIfRequired()
          Update the patterns based on the current generators.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultRegistry

public static ServiceRegistry getDefaultRegistry()
Returns the default service registry (mapped to "services.xml").

Returns:
the default service registry (mapped to "services.xml").

loadIfRequired

public static void loadIfRequired()
                           throws BerliozException
Update the patterns based on the current generators.

Throws:
BerliozException - Should something unexpected happen.
Since:
Berlioz 0.8.2

load

public static void load()
                 throws BerliozException
Loads the content access file from all services files.

Throws:
BerliozException - Should something unexpected happen.

getServiceFiles

public static List<File> getServiceFiles()
Returns:
the list of services files.

load

public static void load(File xml)
                 throws BerliozException
Loads the content access file.

Parameters:
xml - The XML file to load.
Throws:
BerliozException - Should something unexpected happen.

clear

public static void clear()
Update the patterns based on the current generators.