added since tag

This commit is contained in:
Juergen Hoeller 2009-12-03 16:30:51 +00:00
parent fcfe94139c
commit ac3a1d9132
1 changed files with 8 additions and 3 deletions

View File

@ -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());
}
}
}