-public interface ProvidedInterface {
-
- /**
- * Symbolic name for the service as used by the subsystem.
- * @return Service name.
- */
- String getName();
-
- /**
- * Returns the service type.
- * @return Service type.
- */
- Class[] getInterfaceTypes();
-
- /**
- * Sets a unique id of the provided interface to identify it within a given scope.
- * Will be called by the container as part of calling {@link #publish(Object, Scope)}.
- * @param aId Unique id.
- */
- void setUniqueId(String aId);
-
- /**
- * Gets the unique if of the provided interface. This is set by the container
- * using {@link #setUniqueId(String)}.
- */
- String getUniqueId();
+public interface ProvidedInterface extends NamedInterface {
+ /**
+ * Returns the service type.
+ *
+ * @return Service type.
+ */
+ Class[] getInterfaceTypes();