/** * Creates a new root-handler using the given versioning information and resource-manager. * * @param manager the resource manager that loaded this xml-file. * @param source the source-key that identifies from where the file was loaded. * @param context the key that should be used to resolve relative paths. * @param version the versioning information for the root-file. */ public RootXmlReadHandler( final ResourceManager manager, final ResourceKey source, final ResourceKey context, final long version ) { if ( manager == null ) { throw new NullPointerException(); } if ( source == null ) { throw new NullPointerException(); } this.firstCall = true; this.manager = manager; this.source = source; this.context = context; this.dependencyCollector = new DependencyCollector( source, version ); this.objectRegistry = new HashMap<String, Object>(); this.parserConfiguration = new DefaultConfiguration(); this.commentHandler = new CommentHandler(); this.namespaces = new FastStack<String>(); }