Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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