类的使用
org.redkale.inject.ResourceFactory
-
使用ResourceFactory的程序包 程序包 说明 org.redkale.boot 提供Redkale服务器的启动、初始化和加载功能org.redkale.cached.spi org.redkale.inject org.redkale.locked.spi org.redkale.mq.spi org.redkale.net 网络TCP/UDP基础服务包org.redkale.net.http HTTP协议包,提供HTTP协议服务器org.redkale.net.sncp SNCP协议包,提供SNCP协议服务器org.redkale.source 数据源(数据库、缓存)操作包 -
-
org.redkale.boot中ResourceFactory的使用
声明为ResourceFactory的org.redkale.boot中的字段 修饰符和类型 字段 说明 protected ResourceFactory
BootModule. resourceFactory
protected ResourceFactory
ModuleEngine. resourceFactory
protected ResourceFactory
NodeServer. resourceFactory
返回ResourceFactory的org.redkale.boot中的方法 修饰符和类型 方法 说明 ResourceFactory
Application. getResourceFactory()
ResourceFactory
ModuleEngine. getResourceFactory()
ResourceFactory
NodeServer. getResourceFactory()
-
org.redkale.cached.spi中ResourceFactory的使用
参数类型为ResourceFactory的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 void
CachedAsmMethodBoost. doInstance(RedkaleClassLoader.DynBytesClassLoader classLoader, ResourceFactory resourceFactory, Object service)
-
org.redkale.inject中ResourceFactory的使用
返回ResourceFactory的org.redkale.inject中的方法 修饰符和类型 方法 说明 static ResourceFactory
ResourceFactory. create()
创建一个根ResourceFactoryResourceFactory
ResourceFactory. createChild()
创建ResourceFactory子节点ResourceFactory
ResourceFactory. findResourceFactory(String name, Type clazz)
查找指定资源名和资源类型的资源对象所在的ResourceFactory, 没有则返回null返回变量类型为ResourceFactory的类型的org.redkale.inject中的方法 修饰符和类型 方法 说明 List<ResourceFactory>
ResourceFactory. getChildren()
获取所有ResourceFactory子节点参数类型为ResourceFactory的org.redkale.inject中的方法 修饰符和类型 方法 说明 void
ResourceAnnotationLoader. load(ResourceFactory factory, String srcResourceName, Object srcObj, T annotation, Field field, Object attachment)
自定义的对象注入Object
ResourceTypeLoader. load(ResourceFactory factory, String srcResourceName, Object srcObj, String resourceName, Field field, Object attachment)
自定义的对象注入, 实现需要兼容Field为null的情况 -
org.redkale.locked.spi中ResourceFactory的使用
参数类型为ResourceFactory的org.redkale.locked.spi中的方法 修饰符和类型 方法 说明 void
LockedAsmMethodBoost. doInstance(RedkaleClassLoader.DynBytesClassLoader classLoader, ResourceFactory resourceFactory, Object service)
-
org.redkale.mq.spi中ResourceFactory的使用
参数类型为ResourceFactory的org.redkale.mq.spi中的方法 修饰符和类型 方法 说明 void
MessageAsmMethodBoost. doInstance(RedkaleClassLoader.DynBytesClassLoader classLoader, ResourceFactory resourceFactory, Object service)
-
org.redkale.net中ResourceFactory的使用
声明为ResourceFactory的org.redkale.net中的字段 修饰符和类型 字段 说明 ResourceFactory
Context.ContextConfig. resourceFactory
protected ResourceFactory
Context. resourceFactory
protected ResourceFactory
Server. resourceFactory
返回ResourceFactory的org.redkale.net中的方法 修饰符和类型 方法 说明 ResourceFactory
Context. getResourceFactory()
ResourceFactory
Server. getResourceFactory()
参数类型为ResourceFactory的org.redkale.net中的构造器 构造器 说明 Context(long serverStartTime, String nodeid, Logger logger, ExecutorService workExecutor, SSLBuilder sslBuilder, SSLContext sslContext, int bufferCapacity, int maxConns, int maxHeader, int maxBody, Charset charset, InetSocketAddress address, ResourceFactory resourceFactory, DispatcherServlet dispatcher, int aliveTimeoutSeconds, int readTimeoutSeconds, int writeTimeoutSeconds)
Server(Application application, long serverStartTime, String netprotocol, ResourceFactory resourceFactory, DispatcherServlet<K,C,R,P,S> servlet)
-
org.redkale.net.http中ResourceFactory的使用
声明为ResourceFactory的org.redkale.net.http中的字段 修饰符和类型 字段 说明 protected ResourceFactory
WebSocketServlet. resourceFactory
参数类型为ResourceFactory的org.redkale.net.http中的构造器 构造器 说明 HttpServer(Application application, long serverStartTime, ResourceFactory resourceFactory)
HttpServer(ResourceFactory resourceFactory)
-
org.redkale.net.sncp中ResourceFactory的使用
参数类型为ResourceFactory的org.redkale.net.sncp中的方法 修饰符和类型 方法 说明 static <T extends Service>
TSncp. createLocalService(RedkaleClassLoader classLoader, String name, Class<T> serviceImplClass, org.redkale.asm.AsmMethodBoost methodBoost, ResourceFactory resourceFactory, SncpRpcGroups sncpRpcGroups, SncpClient client, MessageAgent agent, String remoteGroup, AnyValue conf)
创建本地模式Service实例static <T extends Service>
TSncp. createRemoteService(ClassLoader classLoader, String name, Class<T> serviceTypeOrImplClass, org.redkale.asm.AsmMethodBoost methodBoost, ResourceFactory resourceFactory, SncpRpcGroups sncpRpcGroups, SncpClient client, MessageAgent agent, String remoteGroup, AnyValue conf)
static <T extends Service>
TSncp. createSimpleLocalService(Class<T> serviceImplClass, ResourceFactory resourceFactory)
static <T extends Service>
TSncp. createSimpleRemoteService(Class<T> serviceImplClass, ResourceFactory resourceFactory, SncpRpcGroups sncpRpcGroups, SncpClient client, String group)
参数类型为ResourceFactory的org.redkale.net.sncp中的构造器 构造器 说明 SncpServer(Application application, long serverStartTime, AnyValue serconf, ResourceFactory resourceFactory)
SncpServer(ResourceFactory resourceFactory)
-
org.redkale.source中ResourceFactory的使用
参数类型为ResourceFactory的org.redkale.source中的方法 修饰符和类型 方法 说明 static CacheSource
AbstractCacheSource. createCacheSource(ClassLoader serverClassLoader, ResourceFactory resourceFactory, AnyValue sourceConf, String sourceName, boolean compileMode)
static DataSource
DataSources. createDataSource(ClassLoader serverClassLoader, ResourceFactory resourceFactory, AnyValue sourceConf, String sourceName, boolean compileMode)
-