org.jboss.kernel.plugins.deployment.props
Class PropertiesGraphFactory

java.lang.Object
  extended by org.jboss.kernel.plugins.deployment.props.PropertiesGraphFactory

public class PropertiesGraphFactory
extends Object

Properties to Graph factory.

Author:
Ales Justin

Constructor Summary
PropertiesGraphFactory(Map<String,String> properties)
           
PropertiesGraphFactory(Properties properties)
           
 
Method Summary
 KernelDeployment build()
          Build the kernel deployment.
protected  void buildGraph(Map<String,String> properties)
          Build graph from properties.
protected  void buildVertices(org.jboss.util.graph.Vertex<String> previous, int index, String key, String value, int level)
          Build vertices from property key and value.
 void setVertexFactory(VertexFactory vertexFactory)
          Set the vertex factory.
protected static Map<String,String> toMap(Properties properties)
          Transform properties to map.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesGraphFactory

public PropertiesGraphFactory(Properties properties)

PropertiesGraphFactory

public PropertiesGraphFactory(Map<String,String> properties)
Method Detail

build

public KernelDeployment build()
Build the kernel deployment.

Returns:
KernelDeployment instance

toMap

protected static Map<String,String> toMap(Properties properties)
Transform properties to map.

Parameters:
properties - the properties
Returns:
map

buildGraph

protected void buildGraph(Map<String,String> properties)
Build graph from properties.

Parameters:
properties - the properties

buildVertices

protected void buildVertices(org.jboss.util.graph.Vertex<String> previous,
                             int index,
                             String key,
                             String value,
                             int level)
Build vertices from property key and value.

Parameters:
previous - previous vertex
index - current dot index
key - the property key
value - the value
level - current level

setVertexFactory

public void setVertexFactory(VertexFactory vertexFactory)
Set the vertex factory.

Parameters:
vertexFactory - the vertex factory

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.