DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
public class SmsSenderFactory implements ManagedServiceFactory
{
Map existingServices = new HashMap();
public void updated(String pid, Dictionary dictionary) throws ConfigurationException
{
// invoked when a new configuration dictionary is assigned
// to service 'pid'.
if (existingServices.containsKey("pid")) //the service already exists
{
MyService service = (MyService) existingServices.get(pid);
service.configure(dictionary);
}
else //configuration dictionary for a new service
{
MyService service = createNewServiceInstance();
service.configure(dictionary);
existingServices.put(pid, service);
}
}
public void deleted(String pid)
{
// invoked when the service 'pid' is deleted
existingServices.remove(pid);
}
public String getName()
{
return "test.smssenderfactory";
}
}
|
...