org.sonatype.gossip.model
Class ComponentFactory

java.lang.Object
  extended by org.sonatype.gossip.model.ComponentFactory

public class ComponentFactory
extends Object

Constructs components from model nodes.

Since:
1.0
Author:
Jason Dillon

Constructor Summary
ComponentFactory()
           
 
Method Summary
static Object build(String className, Object config)
           
static Listener create(ListenerNode node)
           
static Source create(SourceNode node)
           
static Trigger create(TriggerNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFactory

public ComponentFactory()
Method Detail

create

public static Source create(SourceNode node)
                     throws Exception
Throws:
Exception

create

public static Trigger create(TriggerNode node)
                      throws Exception
Throws:
Exception

create

public static Listener create(ListenerNode node)
                       throws Exception
Throws:
Exception

build

public static Object build(String className,
                           Object config)
                    throws Exception
Throws:
Exception


Copyright © 2008-2012 Sonatype. All Rights Reserved.