Backport further refinements from the nullability efforts
Issue: SPR-15656
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,43 +25,39 @@ import org.springframework.core.io.ResourceLoader;
|
||||
* Context information for use by {@link Condition}s.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Juergen Hoeller
|
||||
* @since 4.0
|
||||
*/
|
||||
public interface ConditionContext {
|
||||
|
||||
/**
|
||||
* Return the {@link BeanDefinitionRegistry} that will hold the bean definition
|
||||
* should the condition match or {@code null} if the registry is not available.
|
||||
* @return the registry or {@code null}
|
||||
* should the condition match, or {@code null} if the registry is not available.
|
||||
*/
|
||||
BeanDefinitionRegistry getRegistry();
|
||||
|
||||
/**
|
||||
* Return the {@link ConfigurableListableBeanFactory} that will hold the bean
|
||||
* definition should the condition match or {@code null} if the bean factory
|
||||
* definition should the condition match, or {@code null} if the bean factory
|
||||
* is not available.
|
||||
* @return the bean factory or {@code null}
|
||||
*/
|
||||
ConfigurableListableBeanFactory getBeanFactory();
|
||||
|
||||
/**
|
||||
* Return the {@link Environment} for which the current application is running
|
||||
* Return the {@link Environment} for which the current application is running,
|
||||
* or {@code null} if no environment is available.
|
||||
* @return the environment or {@code null}
|
||||
*/
|
||||
Environment getEnvironment();
|
||||
|
||||
/**
|
||||
* Return the {@link ResourceLoader} currently being used or {@code null}
|
||||
* if the resource loader cannot be obtained.
|
||||
* @return a resource loader or {@code null}
|
||||
* Return the {@link ResourceLoader} currently being used, or {@code null} if
|
||||
* the resource loader cannot be obtained.
|
||||
*/
|
||||
ResourceLoader getResourceLoader();
|
||||
|
||||
/**
|
||||
* Return the {@link ClassLoader} that should be used to load additional
|
||||
* classes or {@code null} if the default classloader should be used.
|
||||
* @return the class loader or {@code null}
|
||||
* Return the {@link ClassLoader} that should be used to load additional classes,
|
||||
* or {@code null} if the default classloader should be used.
|
||||
*/
|
||||
ClassLoader getClassLoader();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,19 +22,19 @@ package org.springframework.jmx;
|
||||
*/
|
||||
public interface IJmxTestBean {
|
||||
|
||||
public int add(int x, int y);
|
||||
int add(int x, int y);
|
||||
|
||||
public long myOperation();
|
||||
long myOperation();
|
||||
|
||||
public int getAge();
|
||||
int getAge();
|
||||
|
||||
public void setAge(int age);
|
||||
void setAge(int age);
|
||||
|
||||
public void setName(String name) throws Exception;
|
||||
void setName(String name) throws Exception;
|
||||
|
||||
public String getName();
|
||||
String getName();
|
||||
|
||||
// used to test invalid methods that exist in the proxy interface
|
||||
public void dontExposeMe();
|
||||
void dontExposeMe();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user