优化注释

This commit is contained in:
redkale
2023-06-27 21:04:06 +08:00
parent 8c08112097
commit a2be5a9430
19 changed files with 37 additions and 2 deletions

View File

@@ -311,7 +311,8 @@ public abstract class NodeServer {
//ResourceFactory resfactory = (isSNCP() ? appResFactory : resourceFactory);
Service service = Modifier.isFinal(resServiceType.getModifiers()) || Sncp.isComponent(resServiceType)
? (Service) resServiceType.getConstructor().newInstance()
: Sncp.createLocalService(serverClassLoader, resourceName, resServiceType, appResFactory, application.getSncpRpcGroups(), sncpClient, null, null, null);
: Sncp.createLocalService(serverClassLoader, resourceName, resServiceType,
appResFactory, application.getSncpRpcGroups(), sncpClient, null, null, null);
appResFactory.register(resourceName, resServiceType, service);
field.set(srcObj, service);
@@ -397,7 +398,8 @@ public abstract class NodeServer {
if (groups.isEmpty() && isSNCP() && NodeServer.this.sncpGroup != null) {
groups.add(NodeServer.this.sncpGroup);
}
nodeService = Sncp.createLocalService(serverClassLoader, resourceName, org.redkale.net.http.WebSocketNodeService.class, application.getResourceFactory(), application.getSncpRpcGroups(), sncpClient, null, (String) null, (AnyValue) null);
nodeService = Sncp.createLocalService(serverClassLoader, resourceName, org.redkale.net.http.WebSocketNodeService.class,
application.getResourceFactory(), application.getSncpRpcGroups(), sncpClient, null, (String) null, (AnyValue) null);
(isSNCP() ? appResFactory : resourceFactory).register(resourceName, WebSocketNode.class, nodeService);
((org.redkale.net.http.WebSocketNodeService) nodeService).setName(resourceName);
}

View File

@@ -20,6 +20,7 @@ import java.lang.annotation.*;
* @since 2.4.0
*
* @deprecated replaced by org.redkale.persistence.SearchColumn
* @see org.redkale.persistence.SearchColumn
*/
@Deprecated(since = "2.8.0")
@Target({FIELD})

View File

@@ -20,6 +20,7 @@ import java.util.function.BiFunction;
*
* @author zhangjx
* @deprecated replaced by org.redkale.persistence.VirtualEntity
* @see org.redkale.persistence.VirtualEntity
*/
@Deprecated(since = "2.8.0")
@Documented

View File

@@ -15,6 +15,7 @@ import java.lang.annotation.*;
* 2、被标记为@AutoLoad(false)的Servlet类不会被自动加载
*
* <p> 详情见: https://redkale.org
* @see org.redkale.annotation.AutoLoad
* @author zhangjx
* @deprecated replaced by org.redkale.annotation.AutoLoad
*/

View File

@@ -15,6 +15,8 @@ import static java.lang.annotation.ElementType.*;
* <p>
* 详情见: https://redkale.org
*
* @see org.redkale.annotation.Command
*
* @author zhangjx
*
* @since 2.1.0

View File

@@ -14,6 +14,8 @@ import static java.lang.annotation.ElementType.*;
*
* <p>
* 详情见: https://redkale.org
*
* @see org.redkale.annotation.Comment
*
* @author zhangjx
*/

View File

@@ -14,6 +14,8 @@ import static java.lang.annotation.ElementType.*;
*
* <p>
* 详情见: https://redkale.org
*
* @see org.redkale.annotation.ConstructorParameters
*
* @author zhangjx
* @deprecated replaced by org.redkale.annotation.ConstructorParameters

View File

@@ -44,6 +44,8 @@ import java.lang.annotation.*;
*
* <p>
* 详情见: https://redkale.org
*
* @see org.redkale.annotation.ResourceListener
*
* @author zhangjx
* @deprecated replaced by org.redkale.annotation.ResourceListener

View File

@@ -16,6 +16,8 @@ import java.lang.annotation.*;
*
* <p>
* 详情见: https://redkale.org
*
* @see org.redkale.annotation.ResourceType
*
* @author zhangjx
*