[jboss-jira] [JBoss JIRA] Updated: (JBPM-927) enhance Calendar to make it more reusable
Martin Goldhahn (JIRA)
jira-events at lists.jboss.org
Wed Apr 4 08:39:58 EDT 2007
[ http://jira.jboss.com/jira/browse/JBPM-927?page=all ]
Martin Goldhahn updated JBPM-927:
---------------------------------
Attachment: calendar.patch
> enhance Calendar to make it more reusable
> -----------------------------------------
>
> Key: JBPM-927
> URL: http://jira.jboss.com/jira/browse/JBPM-927
> Project: JBoss jBPM
> Issue Type: Patch
> Components: Core Engine
> Environment: Java
> Reporter: Martin Goldhahn
> Assigned To: Tom Baeyens
> Attachments: calendar.patch
>
>
> The patch provided adds a new constructor to the org.jbpm.calendar.BusinessCalendar class that makes it possible to instantiate a callendar with a set of holidays other than the one provided in the system setting:
> Index: src/java.jbpm/org/jbpm/calendar/BusinessCalendar.java
> ===================================================================
> RCS file: /cvsroot/jbpm/jbpm.3/src/java.jbpm/org/jbpm/calendar/BusinessCalendar.java,v
> retrieving revision 1.6
> diff -u -r1.6 BusinessCalendar.java
> --- src/java.jbpm/org/jbpm/calendar/BusinessCalendar.java 4 Jan 2006 15:18:50 -0000 1.6
> +++ src/java.jbpm/org/jbpm/calendar/BusinessCalendar.java 4 Apr 2007 12:20:59 -0000
> @@ -52,8 +52,11 @@
> }
>
> public BusinessCalendar() {
> + this(getBusinessCalendarProperties());
> + }
> +
> + public BusinessCalendar(Properties calendarProperties) {
> try {
> - Properties calendarProperties = getBusinessCalendarProperties();
> weekDays = Day.parseWeekDays(calendarProperties, this);
> holidays = Holiday.parseHolidays(calendarProperties, this);
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list