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>

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

Version:
$Revision$
Author:
Julien Viet

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
 Collection<String> getNodeClassNames()
           
abstract  javax.jcr.Repository getRepository(Map<String,String> properties)
           
 void init()
           
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

getNodeClassNames

public Collection<String> getNodeClassNames()

getRepository

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

init

public void init()
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 © 2012 eXo Platform SAS. All Rights Reserved.