I am not sure I understand the problem correctly, maybe you can be more specific about what "application" means.
If you are referring to a sort of power backup system, then generally the circuit operates from a DC source. This DC voltage can be produced by either a battery or by an AC/DC power supply. Simply OR-ing together through a couple of diodes the battery and the output of the AC/DC power supply solves the problem. What remains is to detect the AC presence and turn on the charger to charge the battery.
Anyway, if this does not resemble even remotely your application, please post more details.