Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
impl/src/main/java/org/jboss/weld/extensions/bean/ForwardingObserverMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package org.jboss.weld.extensions.bean; | ||
|
||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Type; | ||
import java.util.Set; | ||
|
||
import javax.enterprise.event.Reception; | ||
import javax.enterprise.event.TransactionPhase; | ||
import javax.enterprise.inject.spi.ObserverMethod; | ||
|
||
public abstract class ForwardingObserverMethod<T> implements ObserverMethod<T> | ||
{ | ||
|
||
protected abstract ObserverMethod<T> delegate(); | ||
|
||
public Class<?> getBeanClass() | ||
{ | ||
return delegate().getBeanClass(); | ||
} | ||
|
||
public Set<Annotation> getObservedQualifiers() | ||
{ | ||
return delegate().getObservedQualifiers(); | ||
} | ||
|
||
public Type getObservedType() | ||
{ | ||
return delegate().getObservedType(); | ||
} | ||
|
||
public Reception getReception() | ||
{ | ||
return delegate().getReception(); | ||
} | ||
|
||
public TransactionPhase getTransactionPhase() | ||
{ | ||
return delegate().getTransactionPhase(); | ||
} | ||
|
||
public void notify(T event) | ||
{ | ||
delegate().notify(event); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) | ||
{ | ||
return delegate().equals(obj); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return delegate().hashCode(); | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return delegate().toString(); | ||
} | ||
|
||
} |