org.sadun.util.polling
Interface FilenameFilterFactory

All Known Implementing Classes:
TestFilenameFilterFactory

public interface FilenameFilterFactory

his interface is used in conjunction with the JMX instrumentation ManagedDirectoryPoller of DirectoryPoller.

The JMX console user can specify the name of a class implementing this interface, which is in turn used to produce a FilenameFilter object which is added to ManagedDirectoryPoller.

The implementing class must have a public default constructor.

Author:
Cristiano Sadun

Method Summary
 java.io.FilenameFilter createFilenameFilter(java.lang.String mbeanName)
          Create the FilenameFilter to add to the ManagedDirectoryPoller MBean.
 java.lang.String getDescription()
          Provides a description of the factory.
 

Method Detail

createFilenameFilter

public java.io.FilenameFilter createFilenameFilter(java.lang.String mbeanName)
Create the FilenameFilter to add to the ManagedDirectoryPoller MBean.

The MBean JMX ObjectName is passed to the factory, so that it can discriminate among different Mbean instances.

Returns:
java.io.FilenameFilter the filter object to use.

getDescription

public java.lang.String getDescription()
Provides a description of the factory.

Returns:
String


Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.