Created
February 11, 2017 19:51
-
-
Save ljnelson/9d6c38d7c879a0e153194f12015c3392 to your computer and use it in GitHub Desktop.
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
public class DelegatingBeanAttributes<T> implements BeanAttributes<T> { | |
private final BeanAttributes<?> delegate; | |
public DelegatingBeanAttributes(final BeanAttributes<?> delegate) { | |
super(); | |
Objects.requireNonNull(delegate); | |
this.delegate = delegate; | |
} | |
@Override | |
public String getName() { | |
return this.delegate.getName(); | |
} | |
@Override | |
public Set<Annotation> getQualifiers() { | |
return this.delegate.getQualifiers(); | |
} | |
@Override | |
public Class<? extends Annotation> getScope() { | |
return this.delegate.getScope(); | |
} | |
@Override | |
public Set<Class<? extends Annotation>> getStereotypes() { | |
return this.delegate.getStereotypes(); | |
} | |
@Override | |
public Set<Type> getTypes() { | |
return this.delegate.getTypes(); | |
} | |
@Override | |
public boolean isAlternative() { | |
return this.delegate.isAlternative(); | |
} | |
@Override | |
public String toString() { | |
return this.delegate.toString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment