ConditionContext



Using it you can do following checks
1) You can check the content in the Resources, using the getResourceLoader() method. It will return ResourceLoader object.
2) You can also verify the class definitions, using the getClassLoader() method, It will return ClassLoader Object.
3) You can verify bean existance, even you can check bean properties also using ConfigurableListableBeanFactory, it will return from the getBeanFactory method in the ConditionContext
4) You can check for property and its value in the Environment, using the getEnrinment() method.
It will return Environment object.
5) You can check the defition of a bean, using the context.getRegistry() method. It will return
BeanDefinitionRegistry object.