1 Reply Latest reply on Aug 15, 2007 12:31 PM by alesj

    AOPDependencyBuilder needs IntrospectionTypeInfoFactoryImpl

    alesj

      AOPDependencyBuilder should use existing IntrospectionTypeInfoFactoryImpl, not creating new one:

      public class AOPDependencyBuilder extends AbstractDependencyBuilder
      {
       private static final String DEPENDENCY_CLASS_NAME = Dependency.class.getName();
       private static final String DEPENDENCY_NAME_ATTRIBUTE = "name";
      IntrospectionTypeInfoFactory
       private static final IntrospectionTypeInfoFactoryImpl typeInfoFactory = new IntrospectionTypeInfoFactoryImpl();
      


      Simple change to IntrospectionTypeInfoFactory is not enough - needing AnnotationHelper.

      There should be some sort of AnnotationHelper introduction on the existing IntrospectionTypeInfoFactoryImpl in IntrospectionTypeInfoFactory.delegate.

        • 1. Re: AOPDependencyBuilder needs IntrospectionTypeInfoFactoryI
          alesj

           

          "alesj" wrote:

          Simple change to IntrospectionTypeInfoFactory is not enough - needing AnnotationHelper.

          I added two new classes:
          public class (Introspection|Javassist)AnnotationHelper extends (Introspection|Javassist)TypeInfoFactory implements AnnotationHelper
          {
           ...
          }
          

          And the delegate is now protected in (Introspection|Javassist)TIF.

          So, when you need both - TIF and AnnotationHelper - reference, as in AOPDependencyBuilder case, you can simply use one of these.

          Is this OK?
          Currently there is just one usage - the mentioned one. :-)