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, org.jboss.aop.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)
           
 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
 NewClassLoaderDomainRegistry getRegistry()
           
 org.jboss.aop.classpool.AOPClassLoaderScopingPolicy getScopingPolicy()
           
 boolean isValidClassLoader(ClassLoader loader)
           
 void setRegistry(NewClassLoaderDomainRegistry registry)
           
 void setScopingPolicy(org.jboss.aop.classpool.AOPClassLoaderScopingPolicy policy)
           
 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

getRegistry

public NewClassLoaderDomainRegistry getRegistry()

setRegistry

public void setRegistry(NewClassLoaderDomainRegistry registry)

start

public void start()

stop

public void stop()

isValidClassLoader

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

setScopingPolicy

public void setScopingPolicy(org.jboss.aop.classpool.AOPClassLoaderScopingPolicy policy)

getScopingPolicy

public org.jboss.aop.classpool.AOPClassLoaderScopingPolicy getScopingPolicy()

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.