001package org.apache.tapestry5.internal; 002 003import org.apache.tapestry5.services.BeanEditContext; 004 005import java.lang.annotation.Annotation; 006 007public class BeanEditContextImpl implements BeanEditContext 008{ 009 private Class<?> beanClass; 010 011 public BeanEditContextImpl(Class<?> beanClass) 012 { 013 this.beanClass = beanClass; 014 } 015 016 public Class<?> getBeanClass() 017 { 018 return beanClass; 019 } 020 021 public <T extends Annotation> T getAnnotation(Class<T> type) 022 { 023 return beanClass.getAnnotation(type); 024 } 025 026}