Java 类org.springframework.context.support.LiveBeansView 实例源码
项目:spring-cloud-function
文件:FunctionExtractingFunctionCatalog.java
public String deploy(String name, String path, String... args) {
Resource resource = new FileSystemResource(
ArchiveUtils.getArchiveRoot(ArchiveUtils.getArchive(path)));
AppDefinition definition = new AppDefinition(resource.getFilename(),
Collections.singletonMap(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME,
"functions." + name));
AppDeploymentRequest request = new AppDeploymentRequest(definition, resource,
Collections.singletonMap(AppDeployer.GROUP_PROPERTY_KEY, "functions"),
Arrays.asList(args));
String id = this.deployer.deploy(request);
this.deployed.put(id, path);
this.names.put(name, id);
this.ids.put(id, name);
register(name);
return id;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot
文件:BeansEndpoint.java
@Override
public void setApplicationContext(ApplicationContext context) throws BeansException {
if (context.getEnvironment()
.getProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME) == null) {
this.liveBeansView.setApplicationContext(context);
}
}
项目:spring-boot-concourse
文件:BeansEndpoint.java
@Override
public void setApplicationContext(ApplicationContext context) throws BeansException {
if (context.getEnvironment()
.getProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME) == null) {
this.liveBeansView.setApplicationContext(context);
}
}
项目:contestparser
文件:BeansEndpoint.java
@Override
public void setApplicationContext(ApplicationContext context) throws BeansException {
if (context.getEnvironment()
.getProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME) == null) {
this.liveBeansView.setApplicationContext(context);
}
}
项目:lams
文件:LiveBeansViewServlet.java
protected LiveBeansView buildLiveBeansView() {
return new ServletContextLiveBeansView(getServletContext());
}
项目:spring4-understanding
文件:LiveBeansViewServlet.java
protected LiveBeansView buildLiveBeansView() {
return new ServletContextLiveBeansView(getServletContext());
}
项目:indoqa-boot
文件:SpringBeansResources.java
@Override
public void setApplicationContext(ApplicationContext context) throws BeansException {
if (context.getEnvironment().getProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME) == null) {
this.liveBeansView.setLeafContext(context);
}
}
项目:class-guard
文件:LiveBeansViewServlet.java
protected LiveBeansView buildLiveBeansView() {
return new ServletContextLiveBeansView(getServletContext());
}