001    package org.tynamo.hibernate;
002    
003    import org.apache.tapestry5.hibernate.HibernateConfigurer;
004    import org.hibernate.cfg.Configuration;
005    
006    public class TynamoInterceptorConfigurer implements HibernateConfigurer
007    {
008            private final TynamoInterceptor interceptor;
009    
010            public TynamoInterceptorConfigurer(TynamoInterceptor interceptor)
011            {
012                    this.interceptor = interceptor;
013            }
014    
015            public void configure(Configuration configuration)
016            {
017                    configuration.setInterceptor(interceptor);
018            }
019    }