Class CXFRuntimeUtils

java.lang.Object
io.quarkiverse.cxf.CXFRuntimeUtils

public class CXFRuntimeUtils extends Object
  • Constructor Details

    • CXFRuntimeUtils

      public CXFRuntimeUtils()
  • Method Details

    • getInstance

      public static <T> T getInstance(String beanRef, boolean namedBeansSupported)
      Type Parameters:
      T - a type to which the returned bean can be casted
      Parameters:
      beanRef - a fully qualified class name or a name of a @Named bean prefixed with hash mark ('#')
      namedBeansSupported - if true then the beanRef argument may contain a name of a @Named bean; otherwise only fully qualified class names can be passed via beanRef
      Returns:
      an instance of a Bean
    • getInstance

      public static <T> T getInstance(Class<? extends T> beanClass)
      Type Parameters:
      T - a type to which the returned bean can be casted
      Parameters:
      beanClass - the type to look up in the CDI container or create via reflection
      Returns:
      an instance of a Bean
    • getInstance

      public static <T> T getInstance(String beanRef, String beanKind, String sei, String clientOrEndpoint)
    • getInstance

      public static <T> T getInstance(Class<? extends T> beanClass, String beanKind, String sei, String clientOrEndpoint)
    • addBeans

      public static <T> void addBeans(List<String> beanRefs, String beanKind, String sei, String clientOrEndpoint, List<T> destination)
    • addBeansByType

      public static <T> void addBeansByType(List<Class<? extends T>> beanTypes, String beanKind, String sei, String clientOrEndpoint, List<T> destination)