public ResourceManager deriveManager( final ResourceManager parent ) throws ResourceLoadingException { return new ResourceManager( parent, new BundleResourceManagerBackend( repository, parent.getBackend(), bundleKey ) ); } }
public StaticDocumentBundle( final Repository repository, final ResourceManager resourceManager, final ResourceKey outsideContextKey ) throws ResourceException { if ( repository == null ) { throw new NullPointerException(); } if ( resourceManager == null ) { throw new NullPointerException(); } this.repository = repository; final BundleResourceManagerBackend backend = new BundleResourceManagerBackend( repository, resourceManager.getBackend(), outsideContextKey ); this.bundleKey = backend.getBundleMainKey(); this.resourceManager = new ResourceManager( resourceManager, backend ); this.documentMetaData = new StaticDocumentMetaData( this.resourceManager, this.bundleKey ); }
public MemoryDocumentBundle( final ResourceKey parent ) { this.zipRepository = new ZipRepository(); this.metaData = new MemoryDocumentMetaData(); final ResourceManager defaultResourceManager = new ResourceManager(); final BundleResourceManagerBackend backend = new BundleResourceManagerBackend( zipRepository, defaultResourceManager.getBackend(), parent ); this.bundleKey = backend.getBundleMainKey(); this.resourceManager = new ResourceManager( defaultResourceManager, backend ); }