Uploaded image for project: 'ShrinkWrap Descriptors'
  1. ShrinkWrap Descriptors
  2. SHRINKDESC-33

Descriptors API forces classloading for configuration

    Details

    • Type: Enhancement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.1.0
    • Fix Version/s: None
    • Component/s: api
    • Labels:
      None

      Description

      The beans descriptor contains methods for specifying various interceptors, decorators, and alternatives, but requires that the Class<?> instance for said artifacts be provided to the API. This is not practical because it requires that the target classes be Classloaded in order for descriptor alteration to take place.

      Descriptor APIs should accept String values wherever a qualified Class name is required by the descriptor. It should not be assumed that the class instance is available:

      public interface BeansDescriptor extends Descriptor
      {
         BeansDescriptor interceptors(String... classes);
       
         BeansDescriptor interceptor(String clazz);
       
         BeansDescriptor decorators(String... classes);
       
         BeansDescriptor decorator(String clazz);
       
         BeansDescriptor alternativeClasses(String... classes);
       
         BeansDescriptor alternativeClass(String clazz);
       
         BeansDescriptor alternativeStereotypes(String... annotations);
       
         BeansDescriptor alternativeStereotype(String clazz);
       
       
         BeansDescriptor interceptors(Class<?>... classes);
       
         BeansDescriptor interceptor(Class<?> clazz);
       
         BeansDescriptor decorators(Class<?>... classes);
       
         BeansDescriptor decorator(Class<?> clazz);
       
         BeansDescriptor alternativeClasses(Class<?>... classes);
       
         BeansDescriptor alternativeClass(Class<?> clazz);
       
         BeansDescriptor alternativeStereotypes(Class<? extends Annotation>... annotations);
       
         BeansDescriptor alternativeStereotype(Class<? extends Annotation> clazz);
       
      }
      

        Gliffy Diagrams

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              lincolnthree Lincoln Baxter III
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development