Defining a WmAsyncListenerNotification Implementation Class
Create a class that extends com.wm.adk.notification.WmAsyncListenerNotification. This class should provide default implementations for the abstract methods fillWmTemplateDescriptor, supports, and runNotification. Because the example uses the ResourceDomainHandler interface, it is also necessary to provide default implementations of the methods defined in that interface. (For information about the ResourceDomainHandler interface, see
An Alternative Approach to Organizing
Resource Domains.) If you are not using the alternative resource domain management model, skip the first three methods in the following listing:
public class SessionLogListenerNotification extends WmAsyncListenerNotification
implements ResourceDomainHandler
{
public Boolean adapterCheckValue(
WmManagedConnection connection,
String resourceDomainName,
String[][] values,String testValue) throws AdapterException
{
return null;
}
public ResourceDomainValues[] adapterResourceDomainLookup(
WmManagedConnection connection,
String resourceDomainName,
String[][] values) throws AdapterException
{
return null;
}
public void registerResourceDomain(
WmManagedConnection connection,
WmAdapterAccess access) throws AdapterException
{
}
public void fillWmTemplateDescriptor(WmTemplateDescriptor
descriptor,Locale l)
throws ResourceException
{
}
public boolean supports(Object data) throws ResourceException
{
boolean result = false;
return result;
}
public NotificationResults runNotification(NotificationEvent event)
throws ResourceException
{
NotificationResults result = null;
return result;
}
}