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, 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)
           
 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
 String getClassPoolFactoryClassName()
           
 boolean isValidClassLoader(ClassLoader loader)
          Is the classloader a valid classloader? Has it been undeployed?
 void setClassPoolFactoryName(String classname)
           
 
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)
Description copied from interface: ClassLoaderValidation
Is the classloader a valid classloader? Has it been undeployed?

Specified by:
isValidClassLoader in interface ClassLoaderValidation
Returns:

createAOPClassLoaderScopingPolicy

public AOPClassLoaderScopingPolicy createAOPClassLoaderScopingPolicy()
Description copied from interface: JBossIntegration
Create the AOPClassLoaderScopingPolicy

Specified by:
createAOPClassLoaderScopingPolicy in interface JBossIntegration
Returns:
the policy

getClassPoolFactoryClassName

public String getClassPoolFactoryClassName()

setClassPoolFactoryName

public void setClassPoolFactoryName(String classname)

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 © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.