added since tag
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2565 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
2d80856e3f
commit
e7b5fc2631
|
|
@ -13,6 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.instrument.classloading.jboss;
|
||||
|
||||
import java.lang.instrument.ClassFileTransformer;
|
||||
|
|
@ -30,13 +31,15 @@ import org.springframework.util.ClassUtils;
|
|||
* <p>Thanks to Ales Justin and Marius Bogoevici for the initial prototype.</p>
|
||||
*
|
||||
* @author Costin Leau
|
||||
* @since 3.0
|
||||
*/
|
||||
public class JBossLoadTimeWeaver implements LoadTimeWeaver {
|
||||
|
||||
private final JBossClassLoaderAdapter classLoader;
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new instance of the {@link JBossLoadTimeWeaver} class using
|
||||
* Create a new instance of the {@link JBossLoadTimeWeaver} class using
|
||||
* the default {@link ClassLoader class loader}.
|
||||
* @see org.springframework.util.ClassUtils#getDefaultClassLoader()
|
||||
*/
|
||||
|
|
@ -45,7 +48,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the {@link JBossLoadTimeWeaver} class using
|
||||
* Create a new instance of the {@link JBossLoadTimeWeaver} class using
|
||||
* the supplied {@link ClassLoader}.
|
||||
* @param classLoader the <code>ClassLoader</code> to delegate to for
|
||||
* weaving (must not be <code>null</code>)
|
||||
|
|
@ -55,6 +58,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
|
|||
this.classLoader = new JBossClassLoaderAdapter(classLoader);
|
||||
}
|
||||
|
||||
|
||||
public void addTransformer(ClassFileTransformer transformer) {
|
||||
this.classLoader.addTransformer(transformer);
|
||||
}
|
||||
|
|
@ -66,4 +70,5 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
|
|||
public ClassLoader getThrowawayClassLoader() {
|
||||
return new SimpleThrowawayClassLoader(getInstrumentableClassLoader());
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue