* NOTE: The current implemention only stores the type of the
* descriptor but his can be extended towards more complex rules
* for matching services.
+ *
+ * Implementations must implement {@link #equals(Object)} and {@link #hashCode()}.
*/
public interface ServiceDescriptor {
+ /**
+ * Symbolic name for the service as used by the subsystem.
+ * @return Service name.
+ */
+ String getName();
+
/**
* Returns the service type.
* @return Service type.
*/
- Class getInterfaceType();
+ Class[] getInterfaceTypes();
}