hns
b8c6201d40
Always scan for repositories 0-9
2005-04-11 15:36:43 +00:00
hns
a021cbf791
Allow Helma to run without listening to any server ports.
2005-04-11 15:29:47 +00:00
hns
2ab0f17678
Add missing calls to checkNode()
2005-04-11 15:26:56 +00:00
hns
47e6955aa2
Don not use potentially deprecated ZipEntry to get an entry's size. The entry
...
may have been generated for an old version of the zip file and not exist at all.
As a fix, don't store the ZipEntry at all in ZipResource, just the ZipEntry's name.
2005-04-11 11:44:54 +00:00
hns
530afc9f88
Add calls to Graphics.dispose() and Image.flush() whereever possible.
...
Rewrite protected resize to directly set image, width, and height.
2005-04-07 14:15:46 +00:00
hns
a74ec62b68
Use Toolkit.createImage() to decode images until javax.imageio has matured.
2005-04-07 14:15:26 +00:00
hns
806260212e
Set lastmodified to 0 if repository doesn't exist
2005-04-05 13:13:32 +00:00
hns
5d754c46a7
Set initial value for lastChecksum to -1 to avoid null reference for empty repositories
2005-04-05 13:12:57 +00:00
hns
4d1e6868cd
Introduce updateSnooze that continously increases type check interval
...
from 1 to 5 seconds as the app remains unchanged.
2005-03-25 08:20:18 +00:00
hns
6b5713b80a
Mark prototype code updated when new resources are added
2005-03-25 08:15:36 +00:00
hns
67988a8d62
Add todo note in getUrl()
2005-03-25 00:27:45 +00:00
hns
48489e8200
Catch UnsupportedOperationException thrown by Resource.getUrl()
2005-03-25 00:27:16 +00:00
hns
fdf3915d9e
Move TypeManager.updatePrototype(Prototype) to Prototype.checkForUpdates().
...
Additionally, the inner workings of the Prototype update logic were vastly simplified.
2005-03-25 00:12:59 +00:00
hns
57efa85f29
remove void return
2005-03-24 23:03:03 +00:00
hns
c7d2534811
Change Application.getRepositories() to return a List instead of an Iterator
2005-03-24 22:38:51 +00:00
hns
514d9a353c
Use logError() instead of logEvent() to log original compilation errors.
2005-03-24 22:03:51 +00:00
hns
fde3b335db
No need to dump stack, logError does that for us (leads to multiple stack traces).
2005-03-24 22:02:21 +00:00
hns
0856559870
Optimize synchronization in updatePrototypes(): keep out of synchronized section if possible
2005-03-24 18:24:51 +00:00
hns
7af9cc6a22
* Implement createResource() method so child resources can be used even if they don't exist
...
* Fix horrible bug in update() where child items were created that weren't child resources at all
2005-03-24 18:23:50 +00:00
hns
cb02290e3d
Remove unnecessary casts
2005-03-24 18:20:57 +00:00
hns
c5996c52ea
Minor code reorg in constructor
2005-03-24 18:20:39 +00:00
hns
73e377dde1
Introduced Resource.getBaseName() to return name with extension cut off.
...
Fixed Resource lookup failure on Windows.
2005-03-23 19:28:04 +00:00
hns
908424d18a
* Actually add embedded top-level repositories to the app's repositories
...
* Simplify last-top-level-repository check in TypeManager
* Fix Application.getAppDir()
2005-03-23 16:42:38 +00:00
hns
92da97550c
Split IDatabase.saveNode() into insertNode() and updateNode(). Fixes bug 418.
2005-03-23 14:57:28 +00:00
hns
11257b4765
* Make TypeManager.createPrototypes() and TypeManager.checkPrototypes() throw IOException
...
* Propagate IOException in the callers of the above methods
2005-03-23 12:32:50 +00:00
hns
e5514d7099
* Don't use TreeSet for resources unless we can get a ResourceComparator
...
* Check if resources exist before trying to read from them
2005-03-23 12:30:04 +00:00
hns
4f59be6597
* Move initScriptingEngine() and scriptingEngine.updatePrototypes() call inside try statement
...
* Replace do.. while with wile statement
2005-03-23 12:28:26 +00:00
hns
14f8f1e8d2
* Implemented hashCode() and equals(Object) for all Repository and Resource implementations
...
* Some code improvements and minor fixes
2005-03-23 12:23:49 +00:00
hns
d3e5eaca9d
Display absolute path name for getName() and toString() in stand-alone file resources.
2005-03-22 16:24:35 +00:00
hns
7c9e4b0fa5
Do not merge lastModifieds in commit()
2005-03-22 13:01:04 +00:00
hns
2dc2851aee
Use higher (10 minutes) default request timeout if rhino debugger is on.
2005-03-22 10:53:09 +00:00
hns
773ef11ab0
Check for updates in lastModified()
2005-03-21 17:48:01 +00:00
hns
335f351c5c
Generally add the exception as second argument when logging errors.
...
Add check for null pointer when unregistering XML-RPC handler.
2005-03-21 17:46:39 +00:00
hns
60b61d63ca
Implement doGenerateID() that can safely be called by IDGenerator
...
without causing infinite recursion.
2005-03-21 15:38:26 +00:00
hns
a37a4e9216
Make generateID() throw Exception
2005-03-21 15:37:13 +00:00
hns
3ff46c6dd3
Add public setUserHandle(), setCacheNode(), getMessage(), setMessage() methods.
2005-03-21 13:29:49 +00:00
hns
034153f251
Make getLogger() public
2005-03-21 13:29:10 +00:00
hns
c4c3505545
Move session manager initialization code towards the end of init() to make sure
...
other fiels are initialized when we start (request evaluators must be usable).
2005-03-18 13:51:54 +00:00
hns
892fe4b6e1
Make sure we enter and exit a Context in serialize()/deserialize().
...
Do not wrap return object in deserialize().
2005-03-18 13:50:41 +00:00
hns
0dd4dba0f7
Try to make javac 1.5 not complain by casting argument to Object[].
2005-03-18 03:17:13 +00:00
hns
abaa492d2a
Move XmlDatabase to helma.objectmodel.dom package.
...
Move the IDGenerator into XmlIDGenerator in the same package.
Make helma.objectmodel.db.IDGenerator an interface that can be
used to plug id generators into NodeManager.
2005-03-18 03:13:12 +00:00
hns
c509e3a030
Moved/merged to XmlIDGenerator in the same package.
2005-03-18 03:11:13 +00:00
hns
127395afdb
* Make getEvaluator() and releaseEvaluator() methods public
...
* Immediately mark application as running in init()
* Adapt to new signature of NodeManager.init()
2005-03-18 02:08:28 +00:00
hns
9ef4316dd6
Cleaned up embedded database code:
...
Cleaned up IDatabase interface, moved code into XmlDatabase,
removed IDGenerator code from NodeManager and Transactor.
2005-03-18 02:05:24 +00:00
hns
d8dc1fc61e
Ignore registerSubnodeChange for transient or new nodes.
2005-03-18 02:01:41 +00:00
hns
e72037c35f
Implement getScriptingEngine(): gets the evaluator's scripting engine,
...
creating and initializing it if necessary.
2005-03-18 01:59:43 +00:00
hns
b21a0d8ddb
Added Javadocs, minor code reformatting, removed unused method.
2005-03-18 01:42:19 +00:00
hns
732fab12b8
Overworked and cleaned up session code a bit:
...
* Made all fields in Session and SessionManager protected to allow
subclassing outside the package
* Renamed SessionManager.setApplication() to init() and introduce
SessionManager.shutdown()
* Introduce Session.commit(RequestEvaluator) which is called after a HTTP
request has finished executing
2005-03-17 08:32:47 +00:00
hns
b953e6e3b2
Use logError() rather than logEvent() for logging HTTP request errors
2005-03-16 20:20:54 +00:00
hns
aaeba92e4b
Swap out session handling into separate SessionManager class.
2005-03-16 17:32:32 +00:00