public void addDependency(ServiceName serviceName) {
        if (serviceName == null) {
            throw EeLogger.ROOT_LOGGER.nullVar("serviceName", "component", componentName);
        }
        dependencies.add(serviceName);
    }
public void addDependency ( ServiceName serviceName ) { if ( serviceName == null ) { throw EeLogger . ROOT_LOGGER . nullVar ( "serviceName" , "component" , componentName ) ; } dependencies . add ( serviceName ) ; }
Add a dependency to this component.  If the same dependency is added multiple times, only the first will
take effect.

@param serviceName the service name of the dependency