Skip Menu |

This queue is for tickets about the Java-JCR CPAN distribution.

Report information
The Basics
Id: 20760
Status: new
Priority: 0/
Queue: Java-JCR

People
Owner: Nobody in particular
Requestors: hanenkamp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Use Perl subs as EventListeners in the ObservationManager
It would be nice to be able to: my $workspace = $session->get_workspace; my $observation_manager = $workspace->get_observation_manager; $observation_manager->add_event_listener( \&do_on_add, $Java::JCR::Observation::Event::NODE_ADDED, '/foo/bar', 1, undef, undef, 0); This should result in do_on_add() being called and passed an argument of type Java::JCR::Observation::EventIterator every time a node was added under /foo/bar in the repository.