Package restx.factory

Class SingletonFactoryMachine<C>

java.lang.Object
restx.factory.SingleNameFactoryMachine<C>
restx.factory.SingletonFactoryMachine<C>
All Implemented Interfaces:
FactoryMachine

public class SingletonFactoryMachine<C> extends SingleNameFactoryMachine<C>
A singleton factory machine provides a boundless component box made up of a component created at instanciation time. This is better suited to tests, for production code prefer a SingleNameFactoryMachine which constructs the component on demand (which is better especially if the component is overriden).