diff Lib/IMPL/DOM/XMLReader.pm @ 263:0f59b2de72af

*fixed IMPL::DOM::Schema circular module references *modified IMPL::Object::Singleton, added auto-activation *code cleanups, docs
author sergey
date Wed, 09 Jan 2013 05:17:44 +0400
parents 4d0e1962161c
children 4ddb27ff4a0b
line wrap: on
line diff
--- a/Lib/IMPL/DOM/XMLReader.pm	Sat Dec 29 03:22:15 2012 +0400
+++ b/Lib/IMPL/DOM/XMLReader.pm	Wed Jan 09 05:17:44 2013 +0400
@@ -3,12 +3,16 @@
 use warnings;
 
 use parent qw(IMPL::Object IMPL::Object::Autofill);
+
 use IMPL::Class::Property;
 use IMPL::Class::Property::Direct;
 use XML::Parser;
-require IMPL::DOM::Schema;
-require IMPL::DOM::Navigator::Builder;
-require IMPL::DOM::Navigator::SimpleBuilder;
+
+use IMPL::require {
+    Schema => 'IMPL::DOM::Schema', # IMPL::DOM::Schema references IMPL::DOM::XML::Reader
+    Builder => 'IMPL::DOM::Navigator::Builder',
+    SimpleBuilder => 'IMPL::DOM::Navigator::SimpleBuilder'
+};
 
 __PACKAGE__->PassThroughArgs;