org.apache.slide.util
Class NamespaceConfigUtil

java.lang.Object
  extended byorg.apache.slide.util.NamespaceConfigUtil

public class NamespaceConfigUtil
extends java.lang.Object

Static methods to aid in accessing a NamespaceConfig


Method Summary
static Content getContentImplementation(Namespace namespace)
          Returns a new instance of the Content implementation for the given Namespace.
static Content getContentImplementation(Namespace namespace, Security security, Structure structure, Lock lock)
          Returns a new instance of the Content implementation for the given Namespace.
static Lock getLockImplementation(Namespace namespace)
          Returns a new instance of the Lock implementation for the given Namespace.
static Lock getLockImplementation(Namespace namespace, Security security)
          Returns a new instance of the Lock implementation for the given Namespace.
static Macro getMacroImplementation(Namespace namespace)
          Returns a new instance of the Macro implementation for the given Namespace.
static Macro getMacroImplementation(Namespace namespace, Security security, Content content, Structure structure, Lock lock)
          Returns a new instance of the Macro implementation for the given Namespace.
static Search getSearchImplementation(Namespace namespace)
          Returns a new instance of the Search implementation for the given Namespace.
static Search getSearchImplementation(Namespace namespace, Structure structure, Content content)
          Returns a new instance of the Search implementation for the given Namespace.
static Security getSecurityImplementation(Namespace namespace)
          Returns a new instance of the Security implementation for the given Namespace.
static Structure getStructureImplementation(Namespace namespace)
          Returns a new instance of the Structure implementation for the given Namespace.
static Structure getStructureImplementation(Namespace namespace, Security security, Lock lock)
          Returns a new instance of the Structure implementation for the given Namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSecurityImplementation

public static Security getSecurityImplementation(Namespace namespace)
Returns a new instance of the Security implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
Returns:
the Security implementation for the namespace

getLockImplementation

public static Lock getLockImplementation(Namespace namespace)
Returns a new instance of the Lock implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
Returns:
the Lock implementation for the namespace

getLockImplementation

public static Lock getLockImplementation(Namespace namespace,
                                         Security security)
Returns a new instance of the Lock implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
security - the Security implementation used to initialize the Lock
Returns:
the Lock implementation for the namespace

getStructureImplementation

public static Structure getStructureImplementation(Namespace namespace)
Returns a new instance of the Structure implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
Returns:
the Structure implementation for the namespace

getStructureImplementation

public static Structure getStructureImplementation(Namespace namespace,
                                                   Security security,
                                                   Lock lock)
Returns a new instance of the Structure implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
security - the Security implementation used to initialize the Structure
lock - the Lock implementation used to initialize the Structure
Returns:
the Structure implementation for the namespace

getContentImplementation

public static Content getContentImplementation(Namespace namespace)
Returns a new instance of the Content implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
Returns:
the Content implementation for the namespace

getContentImplementation

public static Content getContentImplementation(Namespace namespace,
                                               Security security,
                                               Structure structure,
                                               Lock lock)
Returns a new instance of the Content implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
security - the Security implementation used to initialize the Content
structure - the Structure implementation used to initialize the Content
lock - the Lock implementation used to initialize the Content
Returns:
the Content implementation for the namespace

getSearchImplementation

public static Search getSearchImplementation(Namespace namespace)
Returns a new instance of the Search implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
Returns:
the Search implementation for the namespace

getSearchImplementation

public static Search getSearchImplementation(Namespace namespace,
                                             Structure structure,
                                             Content content)
Returns a new instance of the Search implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
structure - the Structure implementation used to initialize the Search
content - the Content implementation used to initialize the Search
Returns:
the Search implementation for the namespace

getMacroImplementation

public static Macro getMacroImplementation(Namespace namespace)
Returns a new instance of the Macro implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
Returns:
the Macro implementation for the namespace

getMacroImplementation

public static Macro getMacroImplementation(Namespace namespace,
                                           Security security,
                                           Content content,
                                           Structure structure,
                                           Lock lock)
Returns a new instance of the Macro implementation for the given Namespace.

Parameters:
namespace - the Namespace to interogate
security - the Security implementation used to initialize the Macro
content - the Content implementation used to initialize the Macro
structure - the Structure implementation used to initialize the Macro
lock - the Lock implementation used to initialize the Macro
Returns:
the Macro implementation for the namespace