Share

JEHA

Code

Programming Languages: Java

License: Apache License V2.0

Repositories

browse code, statistics, last commit on 2009-09-08 cvs -d:pserver:anonymous@jeha.cvs.sourceforge.net:/cvsroot/jeha login

cvs -z3 -d:pserver:anonymous@jeha.cvs.sourceforge.net:/cvsroot/jeha co -P modulename

Show:

What's happening?

  • Followup: RE: Reading the property file value

    Hi Dhanu, No, it is not achievable in JEHA, because your key is not a valid Java property name. The properties' name must follow the naming rules for attributes. The idea of populator is to populate general properties of a Handler. The values will be the same for all Handler instances of the class. To solve your problem, you can create your own populator, implementing Populator...

    2009-09-18 16:32:53 UTC by ad-rocha

  • Followup: RE: Reading the property file value

    Hi Andre, Thanks for your reply. This code will work fine. But I have noticed few things here. 1.If I make an entry in "**MyHandler.properties**" something like this "**property=Arithmetic Exception in Code.**". It giving the below mentioned error [org.codecompany.jeha.util.Utils] - Could not create instance of 'Arithmetic Exception in Code.'...

    2009-09-18 13:05:33 UTC by dhananjay123

  • Followup: RE: Reading the property file value

    Hi Dhanu, I´m still working in order to improve populators. At this moment you can populate the handler in its constructor: public class MyHandler implements Handler { private String property; // create the properties populator private Populator populator = new PropertiesPopulator(); public MyHandler() { // populate the...

    2009-09-17 12:07:57 UTC by ad-rocha

  • Reading the property file value

    Hi, I am trying to reading the value which is defined in MyHandler.properties file in handle method of MyHandler class. Could please any one provide me the code snip for the same. Thanks in advance. Regards Dhanu.

    2009-09-17 10:02:30 UTC by dhananjay123

  • Followup: RE: choose the most appropriate method during exc

    Hi Andre, Thanks for the information, it is working fine with the latest jar and modification in MyHandler class. public class MyHandler implements Handler { @Override public Populator getPopulator() { return null; } public Throwable handle(ArrayIndexOutOfBoundsException arg0,Object...args) { System.out.println("Array Index out of bounds exception"); return...

    2009-09-10 13:28:14 UTC by dhananjay123

  • Followup: RE: choose the most appropriate method during exc

    Hello Dhananjay, Actually, there are two problems. First of all, I just found a bug in JEHA on method handler choosing. I has been fixed and the new version is already available for download (1.0.1). The second problem is that your handle method must have a "Object..." as a second parameter: public Throwable handle(ArrayIndexOutOfBoundsException arg0, Object... arg1) {...

    2009-09-08 12:35:23 UTC by ad-rocha

  • JEHA

    ad-rocha made 1 file-release changes.

    2009-09-08 12:28:02 UTC by ad-rocha

  • JEHA

    ad-rocha made 2 file-release changes.

    2009-09-08 12:27:01 UTC by ad-rocha

  • JEHA

    ad-rocha made 2 file-release changes.

    2009-09-08 12:26:01 UTC by ad-rocha

  • JEHA

    ad-rocha made 2 file-release changes.

    2009-09-08 12:25:01 UTC by ad-rocha

Our Numbers