private List < JoinableResourceBundle > getBundleDependencies ( ResourceBundleDefinition definition , List < JoinableResourceBundle > bundles ) throws BundleDependencyException { List < JoinableResourceBundle > dependencies = new ArrayList <> ( ) ; List < String > processedBundles = new ArrayList <> ( ) ; if ( definition . isGlobal ( ) && definition . getDependencies ( ) != null && ! definition . getDependencies ( ) . isEmpty ( ) ) { throw new BundleDependencyException ( definition . getBundleName ( ) , "The dependencies property is not allowed for global bundles. Please use the order property " + "to define the import order." ) ; } initBundleDependencies ( definition . getBundleName ( ) , definition , dependencies , processedBundles , bundles ) ; return dependencies ; }
Returns the bundle dependencies from the resource bundle definition