FileDocCategorySizeDatePackage
VersionedObjectInterceptorFactory.javaAPI DocJBoss 4.2.12660Fri Jul 13 21:02:32 BST 2007org.jboss.aspects.versioned

VersionedObjectInterceptorFactory

public class VersionedObjectInterceptorFactory extends Object implements org.jboss.aop.advice.AspectFactory
author
Bill Burke
version
$Revision: 57186 $

Fields Summary
private static VersionedObjectInterceptor
instance
Constructors Summary
Methods Summary
public java.lang.ObjectcreatePerClass(org.jboss.aop.Advisor advisor)

      return getInstance();
   
public java.lang.ObjectcreatePerInstance(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor)

      return getInstance();
   
public java.lang.ObjectcreatePerJoinpoint(org.jboss.aop.Advisor advisor, org.jboss.aop.joinpoint.Joinpoint jp)

      return getInstance();
   
public java.lang.ObjectcreatePerJoinpoint(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor, org.jboss.aop.joinpoint.Joinpoint jp)

      return getInstance();
   
public java.lang.ObjectcreatePerVM()

      return getInstance();
   
public static synchronized VersionedObjectInterceptorgetInstance()



        
   
      try
      {
         if (instance == null)
         {
            InitialContext ctx = new InitialContext();
            TransactionManager tm = (TransactionManager)ctx.lookup("java:/TransactionManager");
            instance = new VersionedObjectInterceptor(tm);
         }
         return instance;
      }
      catch (Exception ex)
      {
         throw new NestedRuntimeException(ex);
      }
   
public java.lang.StringgetName()

      return getClass().getName();