package xyz.voxio.qi4j.hello;

import org.qi4j.bootstrap.AssemblyException;
import org.qi4j.bootstrap.ModuleAssembly;
import org.qi4j.bootstrap.SingletonAssembler;

public final class Main
{
	public static void main(String[] args) throws Exception
	{
		SingletonAssembler assembler = new SingletonAssembler()
		{
			@Override
			public void assemble(ModuleAssembly assembly)
					throws AssemblyException
			{
				assembly.transients(Speaker.class);
			}
		};
		Speaker speaker = assembler.module().newTransient( Speaker.class );
		System.out.println(speaker.sayHello());
	}
}
