tstirrat / ucm-twine

Dependency Injection framework for Oracle WebCenter Content (UCM)
http://ucmtwine.org
MIT License
9 stars 0 forks source link

Allow File type injection when used with @Binder for easy file upload handling #3

Open tstirrat opened 12 years ago

tstirrat commented 12 years ago

Allow the @Binder annotation to be used with a File object.

@ServiceMethod(name="TEST_SERVICE")
public void testService(@Binder(name="fileUpload") File fileUpload) {
  long modTime =  fileUpload.lastModified()
  if (fileUpload.exists()) {
    // do something
  }
}