
Originally Posted by
solid
I am not really sure what your goal is beyond having a value attribute.
My goal is to be able to pass custom annotation's attribute's to annotations of that custom annotation...
Code:
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Repository([a way to pass defaultBeanName of DictionaryDao])
@Transactional
public @interface DictionaryDao {
String value() defaultBeanName "";
}
So when I use my custom annotation like this:
Code:
@DictionaryDao(defaultBeanName="someNameForMyClass")
public class MyClass {
...
}
would work in the same way as:
Code:
@Repository("someNameForMyClass")
@Transactional
public class MyClass {
...
}