In my current application i want to create and configure osgi services at runtime through a user interface. I've looked into the OSGi Metatype specification but it only supports simple type attributes.
So my questions are: Is there a good reason why there is no support for attribute types such as other osgi services and does anyone know about an already existing project that does something like this?
UPDATE
To further clarify my question:
What i want to do is to create and configure new services as needed by the user of the software. This should even work if new service interfaces are added to the system.
Lets assume i have a service interface for sending notifications
public interface NotificationService {
void notify(Notification n);
}
and an implementation for sending notifications to e.g. Twitter. Through the Metatype specification i could encode the information that the twitter service needs a username and password. This allows me to dynamically create a UI at runtime for creating new twitter notification services.
This works with simple datatypes, but the Metatype spec does not handle dependencies to other services. E.g. lets say a Notification
has file attachment and therefore the Twitter service needs a FileUpload service to store files.