-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
5 changed files
with
152 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright 2009-2015 the original author or authors. | ||
* <p> | ||
* 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 org.apache.ibatis.executor.loader; | ||
|
||
/** | ||
* @author Eduardo Macarron | ||
*/ | ||
@Deprecated | ||
public final class JavassistProxyFactory extends org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory { | ||
/* no-op */ | ||
} |
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,62 @@ | ||
package com.huifer.dubbo.server.provider; | ||
|
||
/** | ||
* <p>Title : Protocol$Adaptive </p> | ||
* <p>Description : </p> | ||
* | ||
* @author huifer | ||
* @date 2019-06-17 | ||
*/ | ||
|
||
import org.apache.dubbo.common.extension.ExtensionLoader; | ||
|
||
public class Protocol$Adaptive implements org.apache.dubbo.rpc.Protocol { | ||
|
||
public void destroy() { | ||
throw new UnsupportedOperationException( | ||
"The method public abstract void org.apache.dubbo.rpc.Protocol.destroy() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!"); | ||
} | ||
|
||
public int getDefaultPort() { | ||
throw new UnsupportedOperationException( | ||
"The method public abstract int org.apache.dubbo.rpc.Protocol.getDefaultPort() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!"); | ||
} | ||
|
||
public org.apache.dubbo.rpc.Exporter export(org.apache.dubbo.rpc.Invoker arg0) | ||
throws org.apache.dubbo.rpc.RpcException { | ||
if (arg0 == null) { | ||
throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null"); | ||
} | ||
if (arg0.getUrl() == null) { | ||
throw new IllegalArgumentException( | ||
"org.apache.dubbo.rpc.Invoker argument getUrl() == null"); | ||
} | ||
org.apache.dubbo.common.URL url = arg0.getUrl(); | ||
String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol()); | ||
if (extName == null) { | ||
throw new IllegalStateException( | ||
"Failed to get extension (org.apache.dubbo.rpc.Protocol) name from url (" + url | ||
.toString() + ") use keys([protocol])"); | ||
} | ||
org.apache.dubbo.rpc.Protocol extension = ExtensionLoader | ||
.getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); | ||
return extension.export(arg0); | ||
} | ||
|
||
public org.apache.dubbo.rpc.Invoker refer(java.lang.Class arg0, | ||
org.apache.dubbo.common.URL arg1) throws org.apache.dubbo.rpc.RpcException { | ||
if (arg1 == null) { | ||
throw new IllegalArgumentException("url == null"); | ||
} | ||
org.apache.dubbo.common.URL url = arg1; | ||
String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol()); | ||
if (extName == null) { | ||
throw new IllegalStateException( | ||
"Failed to get extension (org.apache.dubbo.rpc.Protocol) name from url (" + url | ||
.toString() + ") use keys([protocol])"); | ||
} | ||
org.apache.dubbo.rpc.Protocol extension = ExtensionLoader | ||
.getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); | ||
return extension.refer(arg0, arg1); | ||
} | ||
} |
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,28 @@ | ||
package org.huifer.rbac.service; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
@SpringBootTest | ||
class DemoServiceTest { | ||
|
||
@Autowired | ||
DemoService demoService; | ||
|
||
@Test | ||
void test() { | ||
demoService.lgs(); | ||
} | ||
|
||
@Test | ||
void testUpdate() { | ||
demoService.update(); | ||
} | ||
|
||
@Test | ||
void testDelete() { | ||
demoService.delete(); | ||
} | ||
} |
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,23 @@ | ||
/** | ||
* Copyright 2009-2015 the original author or authors. | ||
* <p> | ||
* 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 org.apache.ibatis.mapping; | ||
|
||
/** | ||
* @author Clinton Begin | ||
*/ | ||
public enum ResultFlag { | ||
ID, CONSTRUCTOR | ||
} |
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,15 @@ | ||
package example.micronaut.ctr; | ||
|
||
import io.micronaut.http.MediaType; | ||
import io.micronaut.http.annotation.Controller; | ||
import io.micronaut.http.annotation.Get; | ||
import io.micronaut.http.annotation.Produces; | ||
|
||
@Controller | ||
public class HelloController { | ||
@Get("/hello") | ||
@Produces(MediaType.TEXT_PLAIN) | ||
public String index() { | ||
return "Hello World"; | ||
} | ||
} |