org.jboss.aop.asintegration.jboss5
Class JBoss5Integration

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

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

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Constructor Summary
JBoss5Integration()
           
 
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)
           
 AOPClassLoaderScopingPolicyWithRegistry 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
 DomainRegistry getDomainRegistry()
           
 boolean isValidClassLoader(ClassLoader loader)
          Is the classloader a valid classloader? Has it been undeployed?
 void setAopClassLoaderScopingPolicy(AOPClassLoaderScopingPolicyWithRegistry policy)
           
 void setClassPoolFactory(javassist.scopedpool.ScopedClassPoolFactory factory)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBoss5Integration

public JBoss5Integration()
Method Detail

start

public void start()

stop

public void stop()

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:

setAopClassLoaderScopingPolicy

public void setAopClassLoaderScopingPolicy(AOPClassLoaderScopingPolicyWithRegistry policy)

createAOPClassLoaderScopingPolicy

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

Specified by:
createAOPClassLoaderScopingPolicy in interface JBossIntegration
Returns:
the policy

getDomainRegistry

public DomainRegistry getDomainRegistry()

setClassPoolFactory

public void setClassPoolFactory(javassist.scopedpool.ScopedClassPoolFactory factory)

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.