![JAR search and dependency download from the Maven repository](/logo.png)
javapns.devices.DeviceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javapns Show documentation
Show all versions of javapns Show documentation
JavaPNS branch with refactoring of org.json package to a javapns.json pacakge
The newest version!
package javapns.devices;
import javapns.devices.exceptions.*;
/**
* This is the common interface for all DeviceFactories.
* It allows the PushNotificationManager to support multiple
* implementations of DeviceFactory (in-memory, JPA-backed, etc.)
*
* @author Sylvain Pedneault
* @deprecated Phasing out DeviceFactory because it has become irrelevant in the new library architecture
*/
@Deprecated
public interface DeviceFactory {
/**
* Add a device to the map
* @param id The local device id
* @param token The device token
* @return The device created
* @throws DuplicateDeviceException
* @throws NullIdException
* @throws NullDeviceTokenException
*/
public Device addDevice(String id, String token) throws DuplicateDeviceException, NullIdException, NullDeviceTokenException, Exception;
/**
* Get a device according to his id
* @param id The local device id
* @return The device
* @throws UnknownDeviceException
* @throws NullIdException
*/
public Device getDevice(String id) throws UnknownDeviceException, NullIdException;
/**
* Remove a device
* @param id The local device id
* @throws UnknownDeviceException
* @throws NullIdException
*/
public void removeDevice(String id) throws UnknownDeviceException, NullIdException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy