protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); } }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); } }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); } }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); } }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); } }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { if ( ReportParserUtil.INCLUDE_PARSING_VALUE .equals( handler.getHelperObject( ReportParserUtil.INCLUDE_PARSING_KEY ) ) ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, false ); } return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); }
/** * Creates a Resource object for the given product. By default this returns a compound-resource that holds all the key * that identify the resources used during the content production. * * @param targetKey the target key. * @param handler the root handler used for the parsing. * @param createdProduct the created product. * @param createdType the type information for the object that has been parsed. * @return the product wrapped into a resource object. */ protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { return new CompoundResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType ); }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { if ( ReportParserUtil.INCLUDE_PARSING_VALUE .equals( handler.getHelperObject( ReportParserUtil.INCLUDE_PARSING_KEY ) ) ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, false ); } return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); } }
protected Resource createResource( final ResourceKey targetKey, final RootXmlReadHandler handler, final Object createdProduct, final Class createdType ) { if ( ReportParserUtil.INCLUDE_PARSING_VALUE .equals( handler.getHelperObject( ReportParserUtil.INCLUDE_PARSING_KEY ) ) ) { return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, false ); } return new ReportResource( targetKey, handler.getDependencyCollector(), createdProduct, createdType, true ); }
handler.getDependencyCollector().add( targetKey, data.getVersion( manager ) ); return createResource( targetKey, handler, createdProduct, getFactoryType() ); } catch ( ParserConfigurationException e ) {
/** * Parses an external file using LibLoader and returns the parsed result as an object of type * <code>targetClass</code>. The file is given as relative pathname (relative to the current source file). The current * helper-methods are used as parse-parameters for the external parsing. * * @param file the file to be parsed. * @param targetClass the target type of the parse operation. * @param map the map of parse parameters. * @return the result, never null. * @throws ParseException if parsing the result failed for some reason. * @throws ResourceLoadingException if there was an IO error loading the resource. * @see #deriveParseParameters() */ protected Object performExternalParsing( final String file, final Class targetClass, final Map map ) throws ParseException, ResourceLoadingException { try { final ResourceManager resourceManager = rootHandler.getResourceManager(); final ResourceKey source = rootHandler.getSource(); final ResourceKey target = resourceManager.deriveKey( source, file, map ); final DependencyCollector dc = rootHandler.getDependencyCollector(); final Resource resource = resourceManager.create( target, rootHandler.getContext(), targetClass ); dc.add( resource ); return resource.getResource(); } catch ( ResourceLoadingException rle ) { throw rle; } catch ( ResourceException e ) { throw new ParseException( "Failure while loading data: " + file, e, getLocator() ); } }
final DependencyCollector dc = rootHandler.getDependencyCollector();
final ResourceKey derivedKey = manager.deriveKey( key, href ); final Resource resource = manager.create( derivedKey, null, DataFactory.class ); getRootHandler().getDependencyCollector().add( resource ); dataFactory = (DataFactory) resource.getResource(); } catch ( ResourceKeyCreationException e ) {