public class SofaBootRpcSpringUtil extends Object
| 构造器和说明 |
|---|
SofaBootRpcSpringUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
getSpringBean(String beanRef,
org.springframework.context.ApplicationContext applicationContext,
ClassLoader appClassLoader,
String appName)
根据配置的ref获得真正的spring bean
|
static Object |
getSpringBean(String beanRef,
String beanClass,
org.springframework.context.ApplicationContext applicationContext,
ClassLoader appClassLoader,
String appName)
根据配置的ref以及class字符串,获得真正的spring bean
先优先获得refBean,再获得class
|
static Object |
newInstance(String clazz,
ClassLoader loader,
String appName)
使用指定的classloader实例化某个类
|
public static Object getSpringBean(String beanRef, String beanClass, org.springframework.context.ApplicationContext applicationContext, ClassLoader appClassLoader, String appName)
beanRef - spring refbeanClass - 简单class配置applicationContext - spring上下文appClassLoader - 业务上下文public static Object getSpringBean(String beanRef, org.springframework.context.ApplicationContext applicationContext, ClassLoader appClassLoader, String appName)
beanRef - spring refapplicationContext - spring上下文appClassLoader - 业务上下文public static Object newInstance(String clazz, ClassLoader loader, String appName)
clazz - 全类名loader - 类加载器Copyright © 2018 Pivotal Software, Inc.. All rights reserved.