Package org.jboss.weld.util
Class Services
- java.lang.Object
-
- org.jboss.weld.util.Services
-
public final class Services extends Object
- Author:
- Martin Kouba
- See Also:
Service
-
-
Method Summary
All Methods Static Methods Concrete Methods 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>
voidput(org.jboss.weld.bootstrap.api.ServiceRegistry registry, Class<T> key, org.jboss.weld.bootstrap.api.Service value)
-
-
-
Method Detail
-
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 extendsService
orBootstrapService
- a clazz that directly implementsService
orBootstrapService
- Parameters:
clazz
- the given classserviceInterfaces
- 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)
-
-