package org.mongodb.morphia.annotations; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Specifies other classes to participate in the @Entity's lifecycle * * @author Scott Hernandez */ @Documented @Inherited @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) public @interface EntityListeners { /** * The listeners to use for this entity */ Class<?>[] value(); }