com.wideplay.warp.persist.spi
Interface PersistenceStrategyBuilder<T>

All Superinterfaces:
Builder<T>
All Known Implementing Classes:
Db4oPersistenceStrategy.Db4oPersistenceStrategyBuilder, HibernatePersistenceStrategy.HibernatePersistenceStrategyBuilder, JpaPersistenceStrategy.JpaPersistenceStrategyBuilder

public interface PersistenceStrategyBuilder<T>
extends Builder<T>

Formalizes naming conventions for PersistenceStrategy builders.


Method Summary
 PersistenceStrategyBuilder<T> annotatedWith(Class<? extends Annotation> annotation)
          Configure this strategy to build modules bound to the specified Guice Binding Annotation.
 
Methods inherited from interface com.wideplay.warp.persist.spi.Builder
build
 

Method Detail

annotatedWith

PersistenceStrategyBuilder<T> annotatedWith(Class<? extends Annotation> annotation)
Configure this strategy to build modules bound to the specified Guice Binding Annotation.

Parameters:
annotation - a valid Guice Binding Annotation to which all persistence artifacts will be bound, including interceptors
Returns:
this