:)

I am trying to do the following in my AppModule, but it doesn't work.  I
want to essentially remove the old "PageRenderSupport" entry in the
PageRenderInitializer configuration, and add my own.  But I never see my
objects being created ( i put logging within them..  How that I
accomplish what I want to accomplish??  (on an aside, I would love to
make the render pipeline dependent on the content-type!)



public void contributePageRenderInitializer(
OrderedConfiguration<PageRenderCommand> configuration, final
SymbolSource symbolSource, final AssetSource assetSource ) {
                configuration.add( "JsonPageRenderSupport", new 
PageRenderCommand() {
                        public void setup( Environment environment ) {
                                DocumentScriptBuilder builder = new 
FbmlDocumentScriptBuilderImpl();
                                environment.push( DocumentScriptBuilder.class, 
builder );
                                environment.push( PageRenderSupport.class, new
FbmlPageRenderSupportImpl( builder, symbolSource, assetSource ) );
                        }

                        public void cleanup( Environment environment ) {
                                environment.pop( PageRenderSupport.class );
                                Document document = environment.peek( 
Document.class );
                                DocumentScriptBuilder builder = environment.pop(
DocumentScriptBuilder.class );
                                builder.updateDocument( document );
                        }
                } );
        }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to