org.ultrawork.wtk.mc
Class ComponentManager

java.lang.Object
  |
  +--org.ultrawork.wtk.mc.ComponentManager

public class ComponentManager
extends java.lang.Object

A class responsible for storing and retrieving org.ultrawork.wtk.mc.Component instances.

Version:
0.2
Author:
Nicolas Bonvin

Field Summary
private static java.lang.String bundleName
           
private static java.util.HashMap components
           
 
Constructor Summary
ComponentManager()
           
 
Method Summary
static void add(java.lang.String componentName, Component component)
           
static Component find(java.lang.String componentName)
           
static Component findComponent(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String scope)
           
static Container findContainer(javax.servlet.ServletRequest request)
           
static Container findContainer(java.lang.String containerName)
           
static Page findPage(java.lang.String pageName)
           
static java.lang.String getBundleName()
          Gets the bundleName
static void reset()
           
static void setBundleName(java.lang.String aBundleName)
          Sets the bundleName
static void storeContainer(javax.servlet.ServletRequest request, Container c)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

components

private static final java.util.HashMap components

bundleName

private static java.lang.String bundleName
Constructor Detail

ComponentManager

public ComponentManager()
Method Detail

find

public static Component find(java.lang.String componentName)

findContainer

public static Container findContainer(java.lang.String containerName)

findPage

public static Page findPage(java.lang.String pageName)

findContainer

public static Container findContainer(javax.servlet.ServletRequest request)

storeContainer

public static void storeContainer(javax.servlet.ServletRequest request,
                                  Container c)

add

public static void add(java.lang.String componentName,
                       Component component)

findComponent

public static Component findComponent(javax.servlet.jsp.PageContext pageContext,
                                      java.lang.String name,
                                      java.lang.String scope)

reset

public static void reset()

getBundleName

public static java.lang.String getBundleName()
Gets the bundleName
Returns:
Returns a String

setBundleName

public static void setBundleName(java.lang.String aBundleName)
Sets the bundleName
Parameters:
bundleName - The bundleName to set


Copyright 2002 - ultrawork