org.jboss.aop.asintegration.jboss4
Class JBoss4Integration

java.lang.Object
  extended by org.jboss.aop.asintegration.jboss4.JBoss4Integration
All Implemented Interfaces:
javassist.scopedpool.ScopedClassPoolFactory, JBossIntegration, org.jboss.aop.ClassLoaderValidation

public class JBoss4Integration
extends Object
implements JBossIntegration, javassist.scopedpool.ScopedClassPoolFactory

JBoss4Integration.

This class and its associated classes are for the old JBoss4 integration with the LoaderRepository

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Bill Burke, Kabir Khan

Constructor Summary
JBoss4Integration()
           
 
Method Summary
 void attachDeprecatedTranslator()
          Attach the depreacted translator
 javassist.scopedpool.ScopedClassPool create(ClassLoader cl, javassist.ClassPool src, javassist.scopedpool.ScopedClassPoolRepository repository)
           
 javassist.scopedpool.ScopedClassPool create(javassist.ClassPool src, javassist.scopedpool.ScopedClassPoolRepository repository)
           
 org.jboss.aop.classpool.AOPClassLoaderScopingPolicy createAOPClassLoaderScopingPolicy()
          Create the AOPClassLoaderScopingPolicy
 javassist.scopedpool.ScopedClassPoolFactory createScopedClassPoolFactory(File tmpDir)
          Create a scoped classpool factory TODO JBAOP-107 need to review whether ScopedClassPool should also be replaced with some other policy, e.g.
 void detachDeprecatedTranslator()
          Detach the deprecated translator
 boolean isValidClassLoader(ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBoss4Integration

public JBoss4Integration()
Method Detail

isValidClassLoader

public boolean isValidClassLoader(ClassLoader loader)
Specified by:
isValidClassLoader in interface org.jboss.aop.ClassLoaderValidation

createAOPClassLoaderScopingPolicy

public org.jboss.aop.classpool.AOPClassLoaderScopingPolicy createAOPClassLoaderScopingPolicy()
Description copied from interface: JBossIntegration
Create the AOPClassLoaderScopingPolicy

Specified by:
createAOPClassLoaderScopingPolicy in interface JBossIntegration
Returns:
the policy

createScopedClassPoolFactory

public javassist.scopedpool.ScopedClassPoolFactory createScopedClassPoolFactory(File tmpDir)
                                                                         throws Exception
Description copied from interface: JBossIntegration
Create a scoped classpool factory TODO JBAOP-107 need to review whether ScopedClassPool should also be replaced with some other policy, e.g. javassist ClassPath notion is closer to new classloader?

Specified by:
createScopedClassPoolFactory in interface JBossIntegration
Parameters:
tmpDir - the temporary directory for classes
Returns:
the factory
Throws:
Exception - for any error

create

public javassist.scopedpool.ScopedClassPool create(ClassLoader cl,
                                                   javassist.ClassPool src,
                                                   javassist.scopedpool.ScopedClassPoolRepository repository)
Specified by:
create in interface javassist.scopedpool.ScopedClassPoolFactory

create

public javassist.scopedpool.ScopedClassPool create(javassist.ClassPool src,
                                                   javassist.scopedpool.ScopedClassPoolRepository repository)
Specified by:
create in interface javassist.scopedpool.ScopedClassPoolFactory

attachDeprecatedTranslator

public void attachDeprecatedTranslator()
Description copied from interface: JBossIntegration
Attach the depreacted translator

Specified by:
attachDeprecatedTranslator in interface JBossIntegration

detachDeprecatedTranslator

public void detachDeprecatedTranslator()
Description copied from interface: JBossIntegration
Detach the deprecated translator

Specified by:
detachDeprecatedTranslator in interface JBossIntegration


Copyright © 2004 JBoss Inc. All Rights Reserved.