Class XStreamSecurityTypeUtility

java.lang.Object
org.axonframework.springboot.util.XStreamSecurityTypeUtility

public abstract class XStreamSecurityTypeUtility extends Object
Utility class exposing an operation that searches the ApplicationContext for auto-configuration base packages.
Since:
4.5.4
Author:
Steven van Beelen
  • Method Details

    • autoConfigBasePackages

      public static String[] autoConfigBasePackages(org.springframework.context.ApplicationContext applicationContext)
      Retrieves the auto-configuration base packages from AutoConfigurationPackages.get(BeanFactory). These can be used to define the security context of an XStream instance.

      This method will return the package names of the EnableAutoConfiguration annotated beans. After retrieval this method attaches a wildcard (".**") to the packages for XStream's convenience.

      Parameters:
      applicationContext - the ApplicationContext to retrieve the auto-configuration base packages from
      Returns:
      the auto-configuration base packages with ".**" appended to them