FileDocCategorySizeDatePackage
Singleton.javaAPI DocJBoss 4.2.11803Fri Jul 13 21:02:26 BST 2007org.jboss.aspects.patterns.singleton

Singleton

public class Singleton extends Object
A simple implementation of a singleton.

This advice should be PER_CLASS scoped

e.g.






author
Adrian Brock
version
$Revision: 57186 $

Fields Summary
private Object
singleton
Constructors Summary
Methods Summary
public synchronized java.lang.ObjectconstructorAdvice(org.jboss.aop.joinpoint.ConstructorInvocation invocation)

      if (singleton == null)
         singleton = invocation.invokeNext();
      return singleton;