Package org.jboss.weld.util
Class Services
java.lang.Object
org.jboss.weld.util.Services
- Author:
- Martin Kouba
- See Also:
-
Service
-
Method Summary
Modifier and TypeMethodDescriptionidentifyServiceInterfaces(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 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 extendsServiceorBootstrapService- a clazz that directly implementsServiceorBootstrapService- 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)
-