net.spy.yamlmock
Class YamlMock<T>

java.lang.Object
  extended by net.spy.yamlmock.YamlMock<T>

public class YamlMock<T>
extends Object

Yaml mock constructor.


Constructor Summary
YamlMock(Class<T> theClass)
          Construct a YamlMock that builds objects of the given type.
 
Method Summary
 T create(Reader r)
          Create a YamlMock with a default type resolver.
 T create(Reader r, TypeResolver tr)
          Create an instance of the given interface from .yml in the given reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YamlMock

public YamlMock(Class<T> theClass)
Construct a YamlMock that builds objects of the given type.

Method Detail

create

public T create(Reader r,
                TypeResolver tr)
         throws Exception
Create an instance of the given interface from .yml in the given reader.

Throws:
Exception

create

public T create(Reader r)
         throws Exception
Create a YamlMock with a default type resolver.

Throws:
Exception


Copyright © 2007 SPY Internetworking. All Rights Reserved.