Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.astamuse.asta4d.sample;
 
public class Asta4DSampleServlet extends Asta4dServlet {

    
    private static final long serialVersionUID = 1L;
    @Override
        WebApplicationConfiguration conf = super.createConfiguration();
        conf.setSnippetResolver(new DefaultSnippetResolver() {
            @Override
            protected Object createInstance(String snippetNamethrows SnippetNotResovlableException {
                return super.createInstance("com.astamuse.asta4d.sample.snippet." + snippetName);
            }
        });
        conf.getPageInterceptorList().add(new SamplePageInterceptor());
        DefaultSnippetInvoker snippetInvoker = ((DefaultSnippetInvokerconf.getSnippetInvoker());
        snippetInvoker.getSnippetInterceptorList().add(new SampleSnippetInterceptor());
        return conf;
    }
New to GrepCode? Check out our FAQ X