org.sadun.util.polling.test
Class TestFilenameFilterFactory

java.lang.Object
  extended byorg.sadun.util.polling.test.TestFilenameFilterFactory
All Implemented Interfaces:
FilenameFilterFactory

public class TestFilenameFilterFactory
extends java.lang.Object
implements FilenameFilterFactory

An example of FilenameFilterFactory producing a sample FilenameFilter for any Mbean.

Author:
Cristiano Sadun

Constructor Summary
TestFilenameFilterFactory()
           
 
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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestFilenameFilterFactory

public TestFilenameFilterFactory()
Method Detail

createFilenameFilter

public java.io.FilenameFilter createFilenameFilter(java.lang.String mbeanName)
Description copied from interface: FilenameFilterFactory
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.

Specified by:
createFilenameFilter in interface FilenameFilterFactory
Returns:
java.io.FilenameFilter the filter object to use.

getDescription

public java.lang.String getDescription()
Description copied from interface: FilenameFilterFactory
Provides a description of the factory.

Specified by:
getDescription in interface FilenameFilterFactory
Returns:
String

toString

public java.lang.String toString()


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