Spring Framework ApplicationListener - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ApplicationListener class.

This code example shows how to use the following methods:onApplicationEvent
	} 
 
 
	@Override 
	public void onApplicationEvent(ApplicationEvent event) {
		this.delegate.onApplicationEvent(event);
	} 
 
	@Override 
	public boolean supportsEventType(Class<? extends ApplicationEvent> eventType) {
		Class<?> declaredEventType = resolveDeclaredEventType(this.delegate.getClass());
		if (declaredEventType == null || declaredEventType.equals(ApplicationEvent.class)) {
			Class<?> targetClass = AopUtils.getTargetClass(this.delegate);
			if (targetClass != this.delegate.getClass()) {
				declaredEventType = resolveDeclaredEventType(targetClass);
			} 
		} 
		return (declaredEventType == null || declaredEventType.isAssignableFrom(eventType));
	} 
 
6
CodeRank
See Code Examples for Spring Framework ApplicationListener Methods: