private void renderCombinedRequireScripts()
    {
        final Set<DojoClass> dojoClasses = this.requireHeaderItems.stream().flatMap(o -> o.getDojoClasses().stream())
                        .collect(Collectors.toSet());
        if (CollectionUtils.isNotEmpty(dojoClasses)) {
            super.render(new HeaderItem()
            {

                /** The Constant serialVersionUID. */
                private static final long serialVersionUID = 1L;

                @Override
                public Iterable<?> getRenderTokens()
                {
                    return dojoClasses;
                }

                @Override
                public void render(final Response _response)
                {
                    JavaScriptUtils.writeJavaScript(_response,
                                    DojoWrapper.require(null, dojoClasses.toArray(new DojoClass[dojoClasses.size()])),
                                    RequireHeaderItem.class.getName());
                }
            });
        }
    }
private void renderCombinedRequireScripts()
    {
        final Set<DojoClass> dojoClasses = this.requireHeaderItems.stream().flatMap(o -> o.getDojoClasses().stream())
                        .collect(Collectors.toSet());
        if (CollectionUtils.isNotEmpty(dojoClasses)) {
            super.render(new HeaderItem()
            {

                
                private static final long serialVersionUID = 1L;

                @Override
                public Iterable<?> getRenderTokens()
                {
                    return dojoClasses;
                }

                @Override
                public void render(final Response _response)
                {
                    JavaScriptUtils.writeJavaScript(_response,
                                    DojoWrapper.require(null, dojoClasses.toArray(new DojoClass[dojoClasses.size()])),
                                    RequireHeaderItem.class.getName());
                }
            });
        }
    }
private void renderCombinedRequireScripts ( ) { final Set < DojoClass > dojoClasses = this . requireHeaderItems . stream ( ) . flatMap ( o -> o . getDojoClasses ( ) . stream ( ) ) . collect ( Collectors . toSet ( ) ) ; if ( CollectionUtils . isNotEmpty ( dojoClasses ) ) { super . render ( new HeaderItem ( ) { /** The Constant serialVersionUID. */ private static final long serialVersionUID = 1L ; @ Override public Iterable < ? > getRenderTokens ( ) { return dojoClasses ; } @ Override public void render ( final Response _response ) { JavaScriptUtils . writeJavaScript ( _response , DojoWrapper . require ( null , dojoClasses . toArray ( new DojoClass [ dojoClasses . size ( ) ] ) ) , RequireHeaderItem . class . getName ( ) ) ; } } ) ; } }
Render combined requir scripts.
Render combined requir scripts .