Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jci.listeners
Class CompilingListener

    java.lang.Object
      org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
          org.apache.commons.jci.listeners.ReloadingListener
              org.apache.commons.jci.listeners.CompilingListener

All Implemented Interfaces:
  FilesystemAlterationListener

    public class CompilingListener

extends ReloadingListener

A CompilingListener is an improved version of the ReloadingListener. It even compiles the classes from source before doing the reloading.

Author:
  tcurdt

Field Summary

Fields inherited from class org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
`observer`

Constructor Summary
`CompilingListener()`
`CompilingListener(JavaCompiler pCompiler)`
`CompilingListener(JavaCompiler pCompiler, TransactionalResourceStore pTransactionalStore)`

Method Summary
`CompilationResult` | `getCompilationResult()`
`JavaCompiler` | `getCompiler()`
`ResourceReader` | `getReader(FilesystemAlterationObserver pObserver)`
`String[]` | `getResourcesToCompile(FilesystemAlterationObserver pObserver)`
`String` | `getSourceFileExtension()`
`String` | `getSourceNameFromFile(FilesystemAlterationObserver pObserver, File pFile)`
`ResourceStore` | `getStore()`
`boolean` | `isReloadRequired(FilesystemAlterationObserver pObserver)`
`void` | `onStart(FilesystemAlterationObserver pObserver)`

Methods inherited from class org.apache.commons.jci.listeners.ReloadingListener
`addReloadNotificationListener, onDirectoryChange, onDirectoryCreate, onDirectoryDelete, onStop`

Methods inherited from class org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
`getChangedDirectories, getChangedFiles, getCreatedDirectories, getCreatedFiles, getDeletedDirectories, getDeletedFiles, onFileChange, onFileCreate, onFileDelete, signals, waitForCheck, waitForEvent, waitForFirstCheck`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CompilingListener

    public CompilingListener()

### CompilingListener

    public CompilingListener(JavaCompiler pCompiler)

### CompilingListener

    public CompilingListener(JavaCompiler pCompiler,
                             TransactionalResourceStore pTransactionalStore)

Method Detail

### getCompiler

    public JavaCompiler getCompiler()

### getSourceFileExtension

    public String getSourceFileExtension()

### getReader

    public ResourceReader getReader(FilesystemAlterationObserver pObserver)

### getSourceNameFromFile

    public String getSourceNameFromFile(FilesystemAlterationObserver pObserver,
                                        File pFile)

### getStore

    public ResourceStore getStore()

  Overrides:
    `getStore` in class `ReloadingListener`

### getCompilationResult

    public CompilationResult getCompilationResult()

### onStart

    public void onStart(FilesystemAlterationObserver pObserver)

  Specified by:
    `onStart` in interface `FilesystemAlterationListener`
  Overrides:
    `onStart` in class `AbstractFilesystemAlterationListener`

### getResourcesToCompile

    public String[] getResourcesToCompile(FilesystemAlterationObserver pObserver)

### isReloadRequired

    public boolean isReloadRequired(FilesystemAlterationObserver pObserver)

  Overrides:
    `isReloadRequired` in class `ReloadingListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.