in reply to Re^3: Class::MOP won't load a class!!
in thread Class::MOP won't load a class!!
So I thought I would print out the symbol table in %Admin_server::Parser,
and this is what i get...75 print "Plugin $plugin is loaded indeed.\n" 76 if ( Class::MOP::is_class_loaded($plugin) ); 77 78 #===================================== 79 # Let's print out the symbol table to check 80 # whether the plugins loads up. 81 #===================================== + 82 83 print '-'x80, "\n"; 84 print 'Printing out the symbol table....', "\n"; + 85 print '-'x80, "\n"; 86 foreach my $key ( sort {$a cmp $b} keys %Admin_server::Pa +rser:: ) { 87 print $key, "\n"; + 88 }
$prove -lv t/Parser.t t/Parser.t .. 1..4 ok 1 - use Admin_server::Parser; ok 2 - Admin_server::Parser can be instantiated. ok 3 - Instantiated object is of type Admin_server::Parser Found plugins: Admin_server::Parser::Plugin::FeedHandler Loading plugin Admin_server::Parser::Plugin::FeedHandler finished loading Admin_server::Parser::Plugin::FeedHandler ---------------------------------------------------------------------- +---------- Printing out the symbol table.... ---------------------------------------------------------------------- +---------- BEGIN BUILD BUILDARGS DEMOLISH DEMOLISHALL DESTROY ISA ParserInterface Plugin:: _build_plugins a b blessed can clear_plugins confess get_plugins has_plugins import isa meta new tell_app_name tell_app_status Can't locate object method "does" via package "Admin_server::Parser::P +lugin::FeedHandler" (perhaps you forgot to load "Admin_server::Parser +::Plugin::FeedHandler"?) at /Volumes/UserData/Users/dattanik/Programs +/Perl/Work_area/Admin_server/lib/Admin_server/Parser.pm line 91. # Looks like you planned 4 tests but ran 3. # Looks like your test exited with 255 just after 3.
So as you can see, there is no FeedHandler sitting there..... I am lost :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Class::MOP won't load a class!!
by stvn (Monsignor) on Oct 07, 2009 at 21:07 UTC | |
by MarkovChain (Sexton) on Oct 08, 2009 at 15:17 UTC | |
|
Re^5: Class::MOP won't load a class!!
by MarkovChain (Sexton) on Oct 08, 2009 at 16:07 UTC | |
by stvn (Monsignor) on Oct 09, 2009 at 13:27 UTC | |
by MarkovChain (Sexton) on Oct 09, 2009 at 16:16 UTC | |
by MarkovChain (Sexton) on Nov 12, 2009 at 16:51 UTC | |
by Wolfgang (Novice) on Nov 20, 2009 at 13:09 UTC | |
by stvn (Monsignor) on Nov 20, 2009 at 15:13 UTC | |
by Anonymous Monk on Nov 22, 2009 at 22:54 UTC |