Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
ac3a1d91
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ac3a1d91
编写于
12月 03, 2009
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added since tag
上级
fcfe9413
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
3 deletion
+8
-3
org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java
...rk/instrument/classloading/jboss/JBossLoadTimeWeaver.java
+8
-3
未找到文件。
org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java
浏览文件 @
ac3a1d91
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
org.springframework.instrument.classloading.jboss
;
package
org.springframework.instrument.classloading.jboss
;
import
java.lang.instrument.ClassFileTransformer
;
import
java.lang.instrument.ClassFileTransformer
;
...
@@ -30,13 +31,15 @@ import org.springframework.util.ClassUtils;
...
@@ -30,13 +31,15 @@ import org.springframework.util.ClassUtils;
* <p>Thanks to Ales Justin and Marius Bogoevici for the initial prototype.</p>
* <p>Thanks to Ales Justin and Marius Bogoevici for the initial prototype.</p>
*
*
* @author Costin Leau
* @author Costin Leau
* @since 3.0
*/
*/
public
class
JBossLoadTimeWeaver
implements
LoadTimeWeaver
{
public
class
JBossLoadTimeWeaver
implements
LoadTimeWeaver
{
private
final
JBossClassLoaderAdapter
classLoader
;
private
final
JBossClassLoaderAdapter
classLoader
;
/**
/**
* Create
s
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}.
* the default {@link ClassLoader class loader}.
* @see org.springframework.util.ClassUtils#getDefaultClassLoader()
* @see org.springframework.util.ClassUtils#getDefaultClassLoader()
*/
*/
...
@@ -45,7 +48,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
...
@@ -45,7 +48,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
}
}
/**
/**
* Create
s
a new instance of the {@link JBossLoadTimeWeaver} class using
* Create a new instance of the {@link JBossLoadTimeWeaver} class using
* the supplied {@link ClassLoader}.
* the supplied {@link ClassLoader}.
* @param classLoader the <code>ClassLoader</code> to delegate to for
* @param classLoader the <code>ClassLoader</code> to delegate to for
* weaving (must not be <code>null</code>)
* weaving (must not be <code>null</code>)
...
@@ -55,6 +58,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
...
@@ -55,6 +58,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
this
.
classLoader
=
new
JBossClassLoaderAdapter
(
classLoader
);
this
.
classLoader
=
new
JBossClassLoaderAdapter
(
classLoader
);
}
}
public
void
addTransformer
(
ClassFileTransformer
transformer
)
{
public
void
addTransformer
(
ClassFileTransformer
transformer
)
{
this
.
classLoader
.
addTransformer
(
transformer
);
this
.
classLoader
.
addTransformer
(
transformer
);
}
}
...
@@ -66,4 +70,5 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
...
@@ -66,4 +70,5 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver {
public
ClassLoader
getThrowawayClassLoader
()
{
public
ClassLoader
getThrowawayClassLoader
()
{
return
new
SimpleThrowawayClassLoader
(
getInstrumentableClassLoader
());
return
new
SimpleThrowawayClassLoader
(
getInstrumentableClassLoader
());
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录