Today I wanted to use the following component property type:
/**
* Annotation that can be used for components to specify the provided adapter
* types
*
* @since 3.19
*/
@ComponentPropertyType
@Retention(RetentionPolicy.CLASS)
public @interface AdapterTypes {
/**
* See {@link IAdapterFactory#SERVICE_PROPERTY_ADAPTABLE_CLASS}
*
* @return the types that this class adapts from
*/
Class<?>[] adaptableClass();
/**
* See {@link IAdapterFactory#SERVICE_PROPERTY_ADAPTER_NAMES}
*
* @return the types that this class adapts to
*/
Class<?>[] adapterNames() default {};
}
sadly PDE-DS Generator generates wrong XML even though it passes the current TCK, so I suspect this case is currently missing from the TCK test cases.