I have a custom annotation:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
@Documented
public @interface Route {
String module();
}
One class is annotated with this @interface.
@Route(module="cache")
public class Cache implements ICache {
...
}
In my blueprint, I expose this class as a service, exporting all its interfaces.
<service id="cache" auto-export="interfaces">
<bean class="mypackage.Cache" />
</service>
But when I run this on Karaf, I only see my service as ICache
.
Can custom annotation interface be used to export service or do I have to create a standard interface like Interface Route {}
?