Class ServiceRegistries

java.lang.Object
org.jboss.weld.bootstrap.api.helpers.ServiceRegistries

public class ServiceRegistries extends Object
Utility class for ServiceRegistry
  • Method Details

    • unmodifiableServiceRegistry

      public static ServiceRegistry unmodifiableServiceRegistry(ServiceRegistry serviceRegistry)
      Returns an unmodifiable version of provided ServiceRegistry where any attempt to add a service results in an exception
      Parameters:
      serviceRegistry - service registry to process
      Returns:
      unmodifiable variant