org.apache.aries.unittest.mocks.annotations
Annotation Type Singleton


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Singleton

This annotation can be applied to template objects. If a template object's class has this annotation and is passed multiple times to the Skeleton.newMock method with the same interface class the same mock will be returned, unless the garbage collector has cleared the previous mock.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.