Hi,
On Fri, 18 Oct 2002 20:14, [EMAIL PROTECTED] wrote:
> +
> +
> + /**
> + * Return a collection of the triggerable names.
> + * @return
> + */
> + public synchronized Collection getEntries() {
> + Collection coll = m_entries.keySet();
> + Vector retval = new Vector();
> + for (Iterator iterator = coll.iterator(); iterator.hasNext();) {
> + TimeScheduledEntry tse = (TimeScheduledEntry)
> m_entries.get((String) iterator.next()); +
> retval.add(tse.toString());
> + }
> + return retval;
> }
The TimeScheduledEntry are package access only and are thus not really able to
be edited from a Management system and should not really be exposed. If you
just want to see read-only access it may be a good idea to create a read-only
"Management" copy of entry. Or maybe just toString it. So we could maybe do
something like
MxEntry
{
String name;
long time;
}
or similar.
--
Cheers,
Peter Donald
------------------------------------------------------
Mark Twain: "In the real world, the right thing never
happens in the right place at the right time. It is
the task of journalists and historians to rectify
this error."
------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:avalon-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@;jakarta.apache.org>