Class XStreamSecurityTypeUtility
java.lang.Object
org.axonframework.springboot.util.XStreamSecurityTypeUtility
Utility class exposing an operation that searches the
ApplicationContext for auto-configuration base
packages.- Since:
- 4.5.4
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]autoConfigBasePackages(org.springframework.context.ApplicationContext applicationContext) Retrieves the auto-configuration base packages fromAutoConfigurationPackages.get(BeanFactory).
-
Method Details
-
autoConfigBasePackages
public static String[] autoConfigBasePackages(org.springframework.context.ApplicationContext applicationContext) Retrieves the auto-configuration base packages fromAutoConfigurationPackages.get(BeanFactory). These can be used to define the security context of anXStreaminstance.This method will return the package names of the
EnableAutoConfigurationannotated beans. After retrieval this method attaches a wildcard (".**") to the packages for XStream's convenience.- Parameters:
applicationContext- theApplicationContextto retrieve the auto-configuration base packages from- Returns:
- the auto-configuration base packages with
".**"appended to them
-