Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.factory
Class ComponentsTree

java.lang.Object
  extended by org.jboss.dashboard.factory.ComponentsTree

public class ComponentsTree
extends Object

The component tree contains all the components definitions loaded (usually) from the etc/factory directory.


Constructor Summary
ComponentsTree(List files)
          Creates a new tree of components for the given list of files.
 
Method Summary
protected  void addToMappings(String name, Component component)
           
protected  String calculateRelativePath(String parameter, String currentPath)
           
 void destroy()
           
 String getAlias(String path, String relativePath)
           
 Component getComponent(String path)
           
 Component getComponent(String path, String relativePath)
           
 long getNewOrderCounter()
           
 Map getTreeMappings()
           
protected  void init()
           
 Object lookup(String s)
           
 Object lookup(String s, String relativeToPath)
           
protected  Component makeComponentInstance(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentsTree

public ComponentsTree(List files)
Creates a new tree of components for the given list of files.

Parameters:
files - a List of Files with descriptors.
Method Detail

getNewOrderCounter

public long getNewOrderCounter()
Returns:
the next value of the sequence that calculates the order of global components

init

protected void init()

addToMappings

protected void addToMappings(String name,
                             Component component)

getComponent

public Component getComponent(String path)

getComponent

public Component getComponent(String path,
                              String relativePath)

calculateRelativePath

protected String calculateRelativePath(String parameter,
                                       String currentPath)

lookup

public Object lookup(String s)
              throws LookupException
Throws:
LookupException

lookup

public Object lookup(String s,
                     String relativeToPath)
              throws LookupException
Throws:
LookupException

makeComponentInstance

protected Component makeComponentInstance(String name)

toString

public String toString()
Overrides:
toString in class Object

getTreeMappings

public Map getTreeMappings()

getAlias

public String getAlias(String path,
                       String relativePath)

destroy

public void destroy()

Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.