Skip to content

Commit 1c2a22d

Browse files
committed
[pinpoint-apm#2524] cleanup package
1 parent 858d501 commit 1c2a22d

File tree

21 files changed

+68
-57
lines changed

21 files changed

+68
-57
lines changed

‎bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/ClassLoaderLock.java‎ renamed to ‎bootstrap-core/src/test/java/com/navercorp/pinpoint/bootstrap/util/ClassLoaderLock.java‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
/*
2-
* Copyright 2014 NAVER Corp.
2+
* Copyright 2017 NAVER Corp.
3+
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
6-
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
1112
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213
* See the License for the specific language governing permissions and
1314
* limitations under the License.
1415
*/
15-
package com.navercorp.pinpoint.bootstrap;
16+
package com.navercorp.pinpoint.bootstrap.util;
1617

1718
import java.util.concurrent.ConcurrentHashMap;
1819
import java.util.concurrent.ConcurrentMap;

‎profiler-test/src/main/java/com/navercorp/pinpoint/test/MockPluginContextLoadResult.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.navercorp.pinpoint.bootstrap.plugin.ProfilerPlugin;
2424
import com.navercorp.pinpoint.bootstrap.plugin.jdbc.JdbcUrlParserV2;
2525
import com.navercorp.pinpoint.common.plugin.PluginLoader;
26-
import com.navercorp.pinpoint.profiler.instrument.ClassInjector;
26+
import com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector;
2727
import com.navercorp.pinpoint.profiler.plugin.PluginContextLoadResult;
2828
import com.navercorp.pinpoint.profiler.plugin.PluginSetup;
2929
import com.navercorp.pinpoint.profiler.plugin.SetupResult;

‎profiler-test/src/main/java/com/navercorp/pinpoint/test/MockPluginSetup.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818

1919
import com.google.inject.Inject;
2020
import com.navercorp.pinpoint.bootstrap.config.ProfilerConfig;
21-
import com.navercorp.pinpoint.bootstrap.context.TraceContext;
2221
import com.navercorp.pinpoint.bootstrap.instrument.DynamicTransformTrigger;
2322
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentContext;
2423
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentEngine;
2524
import com.navercorp.pinpoint.bootstrap.instrument.transformer.TransformTemplate;
2625
import com.navercorp.pinpoint.bootstrap.instrument.transformer.TransformTemplateAware;
2726
import com.navercorp.pinpoint.bootstrap.plugin.ProfilerPlugin;
28-
import com.navercorp.pinpoint.profiler.instrument.ClassInjector;
27+
import com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector;
2928
import com.navercorp.pinpoint.profiler.plugin.ClassFileTransformerLoader;
3029
import com.navercorp.pinpoint.profiler.plugin.PluginInstrumentContext;
3130
import com.navercorp.pinpoint.profiler.plugin.DefaultProfilerPluginSetupContext;

‎profiler-test/src/main/java/com/navercorp/pinpoint/test/TestProfilerPluginClassLoader.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package com.navercorp.pinpoint.test;
1616

1717
import com.navercorp.pinpoint.exception.PinpointException;
18-
import com.navercorp.pinpoint.profiler.instrument.ClassInjector;
18+
import com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector;
1919

2020
import java.io.InputStream;
2121

‎profiler-test/src/main/java/com/navercorp/pinpoint/test/classloader/TestClassLoader.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentContext;
2626
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentEngine;
2727
import com.navercorp.pinpoint.profiler.instrument.ASMEngine;
28-
import com.navercorp.pinpoint.profiler.instrument.ClassInjector;
29-
import com.navercorp.pinpoint.profiler.instrument.DebugTransformerClassInjector;
28+
import com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector;
29+
import com.navercorp.pinpoint.profiler.instrument.classloading.DebugTransformerClassInjector;
3030
import com.navercorp.pinpoint.profiler.instrument.JavassistEngine;
3131
import com.navercorp.pinpoint.profiler.plugin.ClassFileTransformerLoader;
3232
import com.navercorp.pinpoint.profiler.plugin.MatchableClassFileTransformerGuardDelegate;

‎profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/BootstrapClassLoaderHandler.java‎ renamed to ‎profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/classloading/BootstrapClassLoaderHandler.java‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
2-
* Copyright 2016 NAVER Corp.
2+
* Copyright 2017 NAVER Corp.
3+
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
67
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
89
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,7 +14,7 @@
1314
* limitations under the License.
1415
*/
1516

16-
package com.navercorp.pinpoint.profiler.instrument;
17+
package com.navercorp.pinpoint.profiler.instrument.classloading;
1718

1819
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentEngine;
1920
import com.navercorp.pinpoint.exception.PinpointException;

‎profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/ClassInjector.java‎ renamed to ‎profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/classloading/ClassInjector.java‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
/*
2-
* Copyright 2014 NAVER Corp.
2+
* Copyright 2017 NAVER Corp.
3+
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
6-
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
1112
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213
* See the License for the specific language governing permissions and
1314
* limitations under the License.
1415
*/
15-
package com.navercorp.pinpoint.profiler.instrument;
16+
package com.navercorp.pinpoint.profiler.instrument.classloading;
1617

1718
import java.io.InputStream;
1819

‎profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/DebugTransformerClassInjector.java‎ renamed to ‎profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/classloading/DebugTransformerClassInjector.java‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
/*
2-
* Copyright 2014 NAVER Corp.
2+
* Copyright 2017 NAVER Corp.
3+
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
67
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
89
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
1112
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213
* See the License for the specific language governing permissions and
1314
* limitations under the License.
1415
*/
15-
package com.navercorp.pinpoint.profiler.instrument;
16+
package com.navercorp.pinpoint.profiler.instrument.classloading;
1617

1718
import java.io.InputStream;
1819

1920
import com.navercorp.pinpoint.exception.PinpointException;
21+
import com.navercorp.pinpoint.profiler.instrument.BootstrapPackage;
22+
import com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector;
2023

2124
/**
2225
* @author Woonduk Kang(emeroad)
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
/*
2-
* Copyright 2014 NAVER Corp.
2+
* Copyright 2017 NAVER Corp.
3+
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
67
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
89
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
1112
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213
* See the License for the specific language governing permissions and
1314
* limitations under the License.
1415
*/
15-
package com.navercorp.pinpoint.profiler.instrument;
16+
package com.navercorp.pinpoint.profiler.instrument.classloading;
1617

1718
import java.io.InputStream;
1819
import java.net.URLClassLoader;
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
/*
2-
* Copyright 2014 NAVER Corp.
2+
* Copyright 2017 NAVER Corp.
3+
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
6-
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
910
* Unless required by applicable law or agreed to in writing, software
1011
* distributed under the License is distributed on an "AS IS" BASIS,
1112
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213
* See the License for the specific language governing permissions and
1314
* limitations under the License.
1415
*/
15-
package com.navercorp.pinpoint.profiler.instrument;
16+
package com.navercorp.pinpoint.profiler.instrument.classloading;
1617

1718
import java.io.IOException;
1819
import java.io.InputStream;
1920
import java.lang.reflect.InvocationTargetException;
2021
import java.lang.reflect.Method;
2122
import java.util.Collection;
2223

24+
import com.navercorp.pinpoint.profiler.instrument.classloading.ClassInjector;
2325
import javassist.CannotCompileException;
2426
import javassist.ClassPool;
2527
import javassist.CtClass;
@@ -32,8 +34,8 @@
3234
import com.navercorp.pinpoint.exception.PinpointException;
3335

3436
/**
37+
* @deprecated Since 1.6.1
3538
* @author Jongho Moon
36-
*
3739
*/
3840
@Deprecated
3941
public class LegacyProfilerPluginClassInjector implements ClassInjector {

0 commit comments

Comments
 (0)