Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c396bc
commit 2e2dfd9
Showing
161 changed files
with
11,168 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
.../navercorp/pinpoint/bootstrap/interceptor/ExceptionHandleApiIdAwareAroundInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2016 NAVER Corp. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.bootstrap.interceptor; | ||
|
||
/** | ||
* @author jaehong.kim | ||
*/ | ||
public class ExceptionHandleApiIdAwareAroundInterceptor implements ApiIdAwareAroundInterceptor { | ||
|
||
private final ApiIdAwareAroundInterceptor delegate; | ||
|
||
public ExceptionHandleApiIdAwareAroundInterceptor(ApiIdAwareAroundInterceptor delegate) { | ||
if (delegate == null) { | ||
throw new NullPointerException("delegate must not be null"); | ||
} | ||
|
||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void before(Object target, int apiId, Object[] args) { | ||
try { | ||
this.delegate.before(target, apiId, args); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
|
||
@Override | ||
public void after(Object target, int apiId, Object[] args, Object result, Throwable throwable) { | ||
try { | ||
this.delegate.after(target, apiId, args, result, throwable); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...n/java/com/navercorp/pinpoint/bootstrap/interceptor/ExceptionHandleAroundInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2016 NAVER Corp. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.bootstrap.interceptor; | ||
|
||
/** | ||
* @author jaehong.kim | ||
*/ | ||
public class ExceptionHandleAroundInterceptor implements AroundInterceptor { | ||
|
||
private final AroundInterceptor delegate; | ||
|
||
public ExceptionHandleAroundInterceptor(AroundInterceptor delegate) { | ||
if (delegate == null) { | ||
throw new NullPointerException("delegate must not be null"); | ||
} | ||
|
||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void before(Object target, Object[] args) { | ||
try { | ||
this.delegate.before(target, args); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
|
||
@Override | ||
public void after(Object target, Object[] args, Object result, Throwable throwable) { | ||
try { | ||
this.delegate.after(target, args, result, throwable); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
.../java/com/navercorp/pinpoint/bootstrap/interceptor/ExceptionHandleAroundInterceptor0.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright 2016 NAVER Corp. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.bootstrap.interceptor; | ||
|
||
/** | ||
* @author jaehong.kim | ||
*/ | ||
public class ExceptionHandleAroundInterceptor0 implements AroundInterceptor0 { | ||
|
||
private final AroundInterceptor0 delegate; | ||
|
||
public ExceptionHandleAroundInterceptor0(AroundInterceptor0 delegate) { | ||
if (delegate == null) { | ||
throw new NullPointerException("delegate must not be null"); | ||
} | ||
|
||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void before(Object target) { | ||
try { | ||
this.delegate.before(target); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
|
||
} | ||
|
||
@Override | ||
public void after(Object target, Object result, Throwable throwable) { | ||
try { | ||
this.delegate.after(target, result, throwable); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
.../java/com/navercorp/pinpoint/bootstrap/interceptor/ExceptionHandleAroundInterceptor1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2016 NAVER Corp. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.bootstrap.interceptor; | ||
|
||
/** | ||
* @author jaehong.kim | ||
*/ | ||
public class ExceptionHandleAroundInterceptor1 implements AroundInterceptor1 { | ||
|
||
private final AroundInterceptor1 delegate; | ||
|
||
public ExceptionHandleAroundInterceptor1(AroundInterceptor1 delegate) { | ||
if (delegate == null) { | ||
throw new NullPointerException("delegate must not be null"); | ||
} | ||
|
||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void before(Object target, Object arg0) { | ||
try { | ||
this.delegate.before(target, arg0); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
|
||
@Override | ||
public void after(Object target, Object arg0, Object result, Throwable throwable) { | ||
try { | ||
this.delegate.after(target, arg0, result, throwable); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
.../java/com/navercorp/pinpoint/bootstrap/interceptor/ExceptionHandleAroundInterceptor2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2016 NAVER Corp. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.bootstrap.interceptor; | ||
|
||
/** | ||
* @author jaehong.kim | ||
*/ | ||
public class ExceptionHandleAroundInterceptor2 implements AroundInterceptor2 { | ||
|
||
private final AroundInterceptor2 delegate; | ||
|
||
public ExceptionHandleAroundInterceptor2(AroundInterceptor2 delegate) { | ||
if (delegate == null) { | ||
throw new NullPointerException("delegate must not be null"); | ||
} | ||
|
||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void before(Object target, Object arg0, Object arg1) { | ||
try { | ||
this.delegate.before(target, arg0, arg1); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
|
||
@Override | ||
public void after(Object target, Object arg0, Object arg1, Object result, Throwable throwable) { | ||
try { | ||
this.delegate.after(target, arg0, arg1, result, throwable); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
.../java/com/navercorp/pinpoint/bootstrap/interceptor/ExceptionHandleAroundInterceptor3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2016 NAVER Corp. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.bootstrap.interceptor; | ||
|
||
/** | ||
* @author jaehong.kim | ||
*/ | ||
public class ExceptionHandleAroundInterceptor3 implements AroundInterceptor3 { | ||
|
||
private final AroundInterceptor3 delegate; | ||
|
||
public ExceptionHandleAroundInterceptor3(AroundInterceptor3 delegate) { | ||
if (delegate == null) { | ||
throw new NullPointerException("delegate must not be null"); | ||
} | ||
|
||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void before(Object target, Object arg0, Object arg1, Object arg2) { | ||
try { | ||
this.delegate.before(target, arg0, arg1, arg2); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
|
||
@Override | ||
public void after(Object target, Object arg0, Object arg1, Object arg2, Object result, Throwable throwable) { | ||
try { | ||
this.delegate.after(target, arg0, arg1, arg2, result, throwable); | ||
} catch (Throwable t) { | ||
InterceptorInvokerHelper.handleException(t); | ||
} | ||
} | ||
} |
Oops, something went wrong.