Allowing setting of onPurgeable and onRetainable