org.apache.onami.persist
Interface PersistenceFilter

All Superinterfaces:
javax.servlet.Filter

public interface PersistenceFilter
extends javax.servlet.Filter

Filter for use in container. The filter will start all persistence services upon container start and span a unit of work around every request which is filtered.

Usage example:

  public class MyModule extends ServletModule {
    public void configure() {
      // other bindings

      filter("/*").through(PersistenceFilter.class);
    }
  }
 


Method Summary
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 



Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.