Skip to content

Commit

Permalink
Pass getListenerId call on to delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Mar 8, 2021
1 parent 1ef8cad commit 48688b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2021 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.
Expand Down Expand Up @@ -64,6 +64,11 @@ public void onApplicationEvent(ApplicationEvent event) {
this.delegate.onApplicationEvent(event);
}

@Override
public String getListenerId() {
return this.delegate.getListenerId();
}

@Override
@SuppressWarnings("unchecked")
public boolean supportsEventType(ResolvableType eventType) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2021 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.
Expand Down Expand Up @@ -74,6 +74,11 @@ public void onApplicationEvent(ApplicationEvent event) {
}
}

@Override
public String getListenerId() {
return (this.delegate != null ? this.delegate.getListenerId() : "");
}

@Override
public boolean supportsEventType(ResolvableType eventType) {
return (this.delegate == null || this.delegate.supportsEventType(eventType));
Expand Down

0 comments on commit 48688b7

Please sign in to comment.