org.apache.sling.jcr.contentloader.internal
Class Loader

java.lang.Object
  extended by org.apache.sling.jcr.contentloader.internal.BaseImportLoader
      extended by org.apache.sling.jcr.contentloader.internal.Loader

public class Loader
extends BaseImportLoader

The Loader loads initial content from the bundle.


Nested Class Summary
protected static class Loader.Descriptor
           
 
Field Summary
static String ROOT_DESCRIPTOR
           
 
Fields inherited from class org.apache.sling.jcr.contentloader.internal.BaseImportLoader
EXT_JAR, EXT_JCR_XML, EXT_JSON, EXT_XML, EXT_ZIP
 
Constructor Summary
Loader(ContentLoaderService contentLoaderService)
           
 
Method Summary
 void dispose()
           
 void registerBundle(javax.jcr.Session metadataSession, org.osgi.framework.Bundle bundle, boolean isUpdate)
          Register a bundle and install its content.
 void unregisterBundle(javax.jcr.Session session, org.osgi.framework.Bundle bundle)
          Unregister a bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_DESCRIPTOR

public static final String ROOT_DESCRIPTOR
See Also:
Constant Field Values
Constructor Detail

Loader

public Loader(ContentLoaderService contentLoaderService)
Method Detail

dispose

public void dispose()
Overrides:
dispose in class BaseImportLoader

registerBundle

public void registerBundle(javax.jcr.Session metadataSession,
                           org.osgi.framework.Bundle bundle,
                           boolean isUpdate)
                    throws javax.jcr.RepositoryException
Register a bundle and install its content.

Parameters:
metadataSession -
bundle -
Throws:
javax.jcr.RepositoryException

unregisterBundle

public void unregisterBundle(javax.jcr.Session session,
                             org.osgi.framework.Bundle bundle)
Unregister a bundle. Remove installed content.

Parameters:
bundle - The bundle.


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.