com.brayan.SECS.DAL.sensors
Class MsOfficeFileDetector

java.lang.Object
  extended by java.util.Observable
      extended by com.brayan.SECS.DAL.sensors.MsOfficeFileDetector

public class MsOfficeFileDetector
extends java.util.Observable

MsOfficeFileDetector follows a singleton pattern to avoid two instances being employed to detect files.

Author:
Brayan

Nested Class Summary
private  class MsOfficeFileDetector.fAttrChangedListener
          Listener will invoke the File Sensor if a attribute-changed office document is detected.
 
Field Summary
private static MsOfficeFileDetector ref
          class variable
 
Constructor Summary
private MsOfficeFileDetector()
          constructor not allowed to be called externally private
 
Method Summary
 java.lang.Object clone()
          this overrides the clone() method - because it's of no use to us
static MsOfficeFileDetector getSingletonObject()
           
 void stop()
          stop this instance of file detector
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

private static MsOfficeFileDetector ref
class variable

Constructor Detail

MsOfficeFileDetector

private MsOfficeFileDetector()
constructor not allowed to be called externally private

Method Detail

getSingletonObject

public static MsOfficeFileDetector getSingletonObject()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
this overrides the clone() method - because it's of no use to us

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

stop

public void stop()
stop this instance of file detector