Java Code Examples for org.osgi.service.cm.ConfigurationAdmin#SERVICE_FACTORYPID

The following examples show how to use org.osgi.service.cm.ConfigurationAdmin#SERVICE_FACTORYPID . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigurableServiceResource.java    From openhab-core with Eclipse Public License 2.0 5 votes vote down vote up
private @Nullable ConfigurableServiceDTO getMultiConfigServiceById(String serviceId) {
    String filter = "(&(" + Constants.SERVICE_PID + "=" + serviceId + ")(" + ConfigurationAdmin.SERVICE_FACTORYPID
            + "=*))";
    List<ConfigurableServiceDTO> services = getServicesByFilter(filter);
    if (services.size() == 1) {
        return services.get(0);
    }
    return null;
}
 
Example 2
Source File: ConfigurableServiceResource.java    From smarthome with Eclipse Public License 2.0 5 votes vote down vote up
private ConfigurableServiceDTO getMultiConfigServiceById(String serviceId) {
    String filter = "(&(" + Constants.SERVICE_PID + "=" + serviceId + ")(" + ConfigurationAdmin.SERVICE_FACTORYPID
            + "=*))";
    List<ConfigurableServiceDTO> services = getServicesByFilter(filter);
    if (services.size() == 1) {
        return services.get(0);
    }
    return null;
}
 
Example 3
Source File: ConfigurableServiceResource.java    From openhab-core with Eclipse Public License 2.0 4 votes vote down vote up
private List<ConfigurableServiceDTO> collectServicesById(String serviceId) {
    String filter = "(" + ConfigurationAdmin.SERVICE_FACTORYPID + "=" + serviceId + ")";
    return getServicesByFilter(filter);
}
 
Example 4
Source File: ConfigurableServiceResource.java    From smarthome with Eclipse Public License 2.0 4 votes vote down vote up
private List<ConfigurableServiceDTO> collectServicesById(String serviceId) {
    String filter = "(" + ConfigurationAdmin.SERVICE_FACTORYPID + "=" + serviceId + ")";
    return getServicesByFilter(filter);
}