org.crsh.jcr
Class JCRPlugin<T extends JCRPlugin>

java.lang.Object
  extended by org.crsh.plugin.CRaSHPlugin<T>
      extended by org.crsh.jcr.JCRPlugin<T>
Direct Known Subclasses:
ExoPlugin, JackrabbitPlugin

public abstract class JCRPlugin<T extends JCRPlugin>
extends CRaSHPlugin<T>


Field Summary
private static boolean integrated
          .
private static Object LOCK
          .
private static Collection<String> NODES
          .
 
Fields inherited from class org.crsh.plugin.CRaSHPlugin
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log
 
Constructor Summary
JCRPlugin()
           
 
Method Summary
static Iterable<JCRPlugin> findRepositories()
           
static javax.jcr.Repository findRepository(Map<String,String> properties)
           
abstract  String getDisplayName()
           
abstract  String getName()
           
 Collection<String> getNodeClassNames()
           
abstract  javax.jcr.Repository getRepository(Map<String,String> properties)
           
abstract  String getUsage()
           
 void init()
          Implement this method to know about init life cycle callback.
private  Collection<Class<? extends javax.jcr.Node>> loadAvailablesNodeImplementations(Collection<String> classNames)
           
private  Class<? extends javax.jcr.Node> loadNodeImplementation(String className)
           
private  void registerNodeImplementation(groovy.lang.MetaClassRegistry registry, Class<? extends javax.jcr.Node> nodeClass)
           
 
Methods inherited from class org.crsh.plugin.CRaSHPlugin
createConfigurationCapabilities, destroy, getConfigurationCapabilities, getContext, getImplementation, getStatus, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODES

private static final Collection<String> NODES
.


LOCK

private static final Object LOCK
.


integrated

private static boolean integrated
.

Constructor Detail

JCRPlugin

public JCRPlugin()
Method Detail

findRepository

public static javax.jcr.Repository findRepository(Map<String,String> properties)
                                           throws Exception
Throws:
Exception

findRepositories

public static Iterable<JCRPlugin> findRepositories()
                                            throws Exception
Throws:
Exception

getNodeClassNames

public Collection<String> getNodeClassNames()

getRepository

public abstract javax.jcr.Repository getRepository(Map<String,String> properties)
                                            throws Exception
Throws:
Exception

getName

public abstract String getName()

getDisplayName

public abstract String getDisplayName()

getUsage

public abstract String getUsage()

init

public void init()
Description copied from class: CRaSHPlugin
Implement this method to know about init life cycle callback.

Overrides:
init in class CRaSHPlugin<T extends JCRPlugin>

loadAvailablesNodeImplementations

private Collection<Class<? extends javax.jcr.Node>> loadAvailablesNodeImplementations(Collection<String> classNames)

loadNodeImplementation

private Class<? extends javax.jcr.Node> loadNodeImplementation(String className)

registerNodeImplementation

private void registerNodeImplementation(groovy.lang.MetaClassRegistry registry,
                                        Class<? extends javax.jcr.Node> nodeClass)
                                 throws IntrospectionException
Throws:
IntrospectionException


Copyright © 2014 eXo Platform SAS. All Rights Reserved.