/** Method that calculates bit set (flags) of all features that are enabled by default. */ public static int collectDefaults() { int flags = 0; for (Feature f : values()) { if (f.enabledByDefault()) { flags |= f.getMask(); } } return flags; }
public Hibernate4Module disable(Feature f) { _moduleFeatures &= ~f.getMask(); return this; }
public final boolean isEnabled(Feature f) { return (_moduleFeatures & f.getMask()) != 0; }
public Hibernate4Module enable(Feature f) { _moduleFeatures |= f.getMask(); return this; }