Class Services

java.lang.Object
org.jboss.weld.util.Services

public final class Services extends Object
Author:
Martin Kouba
See Also:
  • Service
  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<Class<? extends org.jboss.weld.bootstrap.api.Service>>
    identifyServiceInterfaces(Class<?> clazz, Set<Class<? extends org.jboss.weld.bootstrap.api.Service>> serviceInterfaces)
    Identifies service views for a service implementation class.
    static <T extends org.jboss.weld.bootstrap.api.Service>
    void
    put(org.jboss.weld.bootstrap.api.ServiceRegistry registry, Class<T> key, org.jboss.weld.bootstrap.api.Service value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • identifyServiceInterfaces

      public static Set<Class<? extends org.jboss.weld.bootstrap.api.Service>> identifyServiceInterfaces(Class<?> clazz, Set<Class<? extends org.jboss.weld.bootstrap.api.Service>> serviceInterfaces)
      Identifies service views for a service implementation class. A service view is either: - an interface that directly extends Service or BootstrapService - a clazz that directly implements Service or BootstrapService
      Parameters:
      clazz - the given class
      serviceInterfaces - a set that this method populates with service views
      Returns:
      serviceInterfaces
    • put

      public static <T extends org.jboss.weld.bootstrap.api.Service> void put(org.jboss.weld.bootstrap.api.ServiceRegistry registry, Class<T> key, org.jboss.weld.bootstrap.api.Service value)