优化注释

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

@@ -20,6 +20,8 @@ import java.lang.annotation.*;
/**
* 值越大,优先级越高
*
* @see org.redkale.annotation.Priority
*
* @since Common Annotations 1.2
*

View File

@@ -9,6 +9,8 @@ import java.lang.annotation.*;
/**
* @since Common Annotations 1.0
*
* @see org.redkale.annotation.Resource
*
* @deprecated replace by org.redkale.annotation.Resource
*/

View File

@@ -34,6 +34,7 @@ import java.lang.annotation.*;
* @since Java Persistence 2.0
*
* @deprecated replace by org.redkale.persistence.Cacheable
* @see org.redkale.persistence.Cacheable
*/
@Deprecated(since = "2.8.0")
@Target({TYPE})

View File

@@ -48,6 +48,8 @@ import static java.lang.annotation.ElementType.*;
* @since Java Persistence 1.0
*
* @deprecated replace by org.redkale.persistence.Column
*
* @see org.redkale.persistence.Column
*/
@Deprecated(since = "2.8.0")
@Target({METHOD, FIELD})

View File

@@ -26,6 +26,8 @@ import java.lang.annotation.*;
* @since Java Persistence 1.0
*
* @deprecated replace by org.redkale.persistence.Entity
*
* @see org.redkale.persistence.Entity
*/
@Deprecated(since = "2.8.0")
@Inherited

View File

@@ -48,6 +48,8 @@ import static java.lang.annotation.ElementType.*;
* @since Java Persistence 1.0
*
* @deprecated replace by org.redkale.persistence.Id
*
* @see org.redkale.persistence.Id
*/
@Deprecated(since = "2.8.0")
@Target({METHOD, FIELD})

View File

@@ -39,6 +39,8 @@ import java.lang.annotation.*;
* @since Java Persistence 2.1
*
* @deprecated replace by org.redkale.persistence.Index
*
* @see org.redkale.persistence.Index
*
*/
@Deprecated(since = "2.8.0")

View File

@@ -38,6 +38,8 @@ import java.lang.annotation.*;
* @since Java Persistence 1.0
*
* @deprecated replace by org.redkale.persistence.Table
*
* @see org.redkale.persistence.Table
*/
@Deprecated(since = "2.8.0")
@Target(TYPE)

View File

@@ -38,6 +38,8 @@ import static java.lang.annotation.ElementType.*;
* @since Java Persistence 1.0
*
* @deprecated replace by org.redkale.persistence.Transient
*
* @see org.redkale.persistence.Transient
*/
@Deprecated(since = "2.8.0")
@Target({METHOD, FIELD})

View File

@@ -36,6 +36,9 @@ import java.lang.annotation.*;
* @since Java Persistence 1.0
*
* @deprecated replace by org.redkale.persistence.UniqueConstraint
*
* @see org.redkale.persistence.UniqueConstraint
*
*/
@Deprecated(since = "2.8.0")
@Target({})

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
*