public boolean add()

in boot/src/main/java/org/apache/karaf/minho/boot/service/ServiceRegistry.java [81:92]


    public boolean add(final Service service) {
        boolean added = registry.putIfAbsent(service.getClass(), service) == null;
        if (added) {
            log.info("Adding " + service.name() + " service (" + service.priority() + ")");
            try {
                service.onRegister(this);
            } catch (Exception e) {
                throw new IllegalStateException("Can't register " + service.name(), e);
            }
        }
        return added;
    }