Package org.jpatterns.gof
Annotation Type SingletonPattern
-
@Retention(RUNTIME) @Target(TYPE) @Documented @DesignPattern(type=CREATIONAL, related={AbstractFactoryPattern.class,BuilderPattern.class,PrototypePattern.class}) public @interface SingletonPattern
Intent [GoF, pg 127]: Ensure a class only has one instance, and provide a global point of access to it.- Since:
- 2010-08-08
- Author:
- Alex Gout
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
comment
java.lang.Class[]
participants
-