public class ServiceUtil extends Object
Constructor and Description |
---|
ServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
assignFromSerializable(Class<?> clazz) |
static ServiceRegistryItem |
copyServiceItem(ServiceRegistryItem serviceiItem) |
static void |
generateServiceMethod(Class clazz,
ServiceComponent component,
ServiceIdGenerateRule serviceIdGenerateRule) |
static void |
supplementServiceComponent(Object instance,
ServiceComponent component,
ServiceIdGenerateRule serviceIdGenerateRule)
若Component对象下属没有ServiceMethod对象,则将Component对应的类的所有方法都生成ServiceMethod
|
public static boolean assignFromSerializable(Class<?> clazz)
public static ServiceRegistryItem copyServiceItem(ServiceRegistryItem serviceiItem)
public static void supplementServiceComponent(Object instance, ServiceComponent component, ServiceIdGenerateRule serviceIdGenerateRule) throws ServiceLoadException
instance
- 对象实例component
- 服务描述对象serviceIdGenerateRule
- 服务id生成规则ServiceLoadException
public static void generateServiceMethod(Class clazz, ServiceComponent component, ServiceIdGenerateRule serviceIdGenerateRule) throws ServiceLoadException
ServiceLoadException
Copyright © 2006–2018 TinyGroup. All rights reserved.