/** * Adapt the {@link net.sf.ehcache.Status} to the matching {@link Status} * * @param status the status to adapt * @return a Status that matches the lifecycle phase of the ehcache-specific status */ public static Status adaptStatus(net.sf.ehcache.Status status) { if (status.intValue() == net.sf.ehcache.Status.STATUS_ALIVE.intValue()) { return Status.STARTED; } if (status.intValue() == net.sf.ehcache.Status.STATUS_UNINITIALISED.intValue()) { return Status.UNINITIALISED; } if (status.intValue() == net.sf.ehcache.Status.STATUS_SHUTDOWN.intValue()) { return Status.STOPPED; } return Status.UNINITIALISED; }