[shrinkwrap-issues] [JBoss JIRA] Created: (SHRINKDESC-33) Descriptors API forces classloading for configuration

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Mon Feb 21 16:22:14 EST 2011


Descriptors API forces classloading for configuration
-----------------------------------------------------

                 Key: SHRINKDESC-33
                 URL: https://issues.jboss.org/browse/SHRINKDESC-33
             Project: ShrinkWrap Descriptors
          Issue Type: Enhancement
          Components: api
    Affects Versions: 0.1.0
            Reporter: Lincoln Baxter III


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);

}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list