本文整理了Java中org.springframework.context.ApplicationContext.getBeanDefinitionCount()
方法的一些代码示例,展示了ApplicationContext.getBeanDefinitionCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ApplicationContext.getBeanDefinitionCount()
方法的具体详情如下:
包路径:org.springframework.context.ApplicationContext
类名称:ApplicationContext
方法名:getBeanDefinitionCount
暂无
代码示例来源:origin: PebbleTemplates/pebble
@Override
public int size() {
return this.ctx.getBeanDefinitionCount();
}
代码示例来源:origin: PebbleTemplates/pebble
@Override
public int size() {
return this.ctx.getBeanDefinitionCount();
}
代码示例来源:origin: PebbleTemplates/pebble
@Override
public int size() {
return this.ctx.getBeanDefinitionCount();
}
代码示例来源:origin: com.lyncode/jtwig-spring
@Override
public int size() {
return context.getBeanDefinitionCount();
}
代码示例来源:origin: org.kuali.student.core/ks-common-util
@Override
public int getBeanDefinitionCount() {
return applicationContext.getBeanDefinitionCount();
}
代码示例来源:origin: com.consol.citrus/citrus-ws
public int getBeanDefinitionCount() {
return applicationContext.getBeanDefinitionCount();
}
public boolean containsBeanDefinition(String beanName) {
代码示例来源:origin: pl.edu.icm.yadda/yadda-common
/**
* @return
* @see org.springframework.beans.factory.ListableBeanFactory#getBeanDefinitionCount()
*/
public int getBeanDefinitionCount() {
return target.getBeanDefinitionCount();
}
代码示例来源:origin: io.macgyver/macgyver-core
@Override
public int size() {
return ctx.getBeanDefinitionCount();
}
代码示例来源:origin: net.sf.taverna.t2.infrastructure/platform-spring
/**
* Delegates to internal ApplicationContext supplied by constructor
*/
public final int getBeanDefinitionCount() {
return context.getBeanDefinitionCount();
}
代码示例来源:origin: kousen/Spring-Framework-Essentials
public static void main(String[] args) {
ApplicationContext context =
new AnnotationConfigApplicationContext(
AppConfig.class, AppConfig.class);
System.out.println(context.getBeanDefinitionCount());
for (String name : context.getBeanDefinitionNames()) {
System.out.println(name);
}
}
}
代码示例来源:origin: kousen/Spring-Framework-Essentials
public static void main(String[] args) {
ApplicationContext context =
new AnnotationConfigApplicationContext(
AppConfig.class, AppConfig.class);
System.out.println(context.getBeanDefinitionCount());
for (String name : context.getBeanDefinitionNames()) {
System.out.println(name);
}
}
}
代码示例来源:origin: apache/archiva
@Override
public int getBeanDefinitionCount()
{
return applicationContext.getBeanDefinitionCount();
}
代码示例来源:origin: Jasig/uPortal
@Override
public int size() {
return super.getVariables().size() + context.getBeanDefinitionCount();
}
代码示例来源:origin: kousen/Spring-Framework-Essentials
public static void main(String[] args) {
ApplicationContext context =
new AnnotationConfigApplicationContext(
AppConfig.class, AppConfig.class);
System.out.println(context.getBeanDefinitionCount());
for (String name : context.getBeanDefinitionNames()) {
System.out.println(name);
}
}
}
代码示例来源:origin: matlux/jvm-breakglass
@Override
public int size() {
return ctx.getBeanDefinitionCount() + super.size();
}
代码示例来源:origin: dsyer/spring-boot-aspectj
@EventListener
public void started(ContextRefreshedEvent event) {
System.err.println(message + ": " + event);
System.err.println("Beans: " + event.getApplicationContext().getBeanDefinitionCount());
}
代码示例来源:origin: org.apache.tapestry/tapestry-spring
@Override
public void initializeApplication(Context context, ApplicationInitializer initializer)
{
logger.info(String.format("Spring version %s with %,d defined beans.",
SpringVersion.getVersion(),
springContext.getBeanDefinitionCount()));
initializer.initializeApplication(context);
}
};
代码示例来源:origin: apache/tapestry-5
@Override
public void initializeApplication(Context context, ApplicationInitializer initializer)
{
logger.info(String.format("Spring version %s with %,d defined beans.",
SpringVersion.getVersion(),
springContext.getBeanDefinitionCount()));
initializer.initializeApplication(context);
}
};
代码示例来源:origin: gilbutITbook/006859
@Override
public Collection<Metric<?>> metrics() {
List<Metric<?>> metrics = new ArrayList<Metric<?>>();
metrics.add(new Metric<Long>("spring.context.startup-date",
context.getStartupDate()));
metrics.add(new Metric<Integer>("spring.beans.definitions",
context.getBeanDefinitionCount()));
metrics.add(new Metric<Integer>("spring.beans",
context.getBeanNamesForType(Object.class).length));
metrics.add(new Metric<Integer>("spring.controllers",
context.getBeanNamesForAnnotation(Controller.class).length));
return metrics;
}
代码示例来源:origin: org.springframework.boot/spring-boot-test
@Override
public String toString() {
if (this.startupFailure != null) {
return "Unstarted application context "
+ this.applicationContextType.getName() + "[startupFailure="
+ this.startupFailure.getClass().getName() + "]";
}
ToStringCreator builder = new ToStringCreator(this.applicationContext)
.append("id", this.applicationContext.getId())
.append("applicationName", this.applicationContext.getApplicationName())
.append("beanDefinitionCount",
this.applicationContext.getBeanDefinitionCount());
return "Started application " + builder;
}
内容来源于网络,如有侵权,请联系作者删除!