eXo JCR :: Component :: Extension Service 1.15.0-CR2

org.exoplatform.services.jcr.ext.registry
Class RegistryEntry

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.registry.RegistryEntry

public final class RegistryEntry
extends Object

Created by The eXo Platform SAS .
Encapsulates registry entry (i.e services', applications' etc settings)

Version:
$Id: $
Author:
Gennady Azarenkov

Constructor Summary
RegistryEntry(Document dom)
          creates a RegistryEntry after XML DOM Document root element node name it is the name of the Entry
RegistryEntry(String rootName)
          creates an empty RegistryEntry
 
Method Summary
 InputStream getAsInputStream()
           
 Document getDocument()
           
 String getName()
           
static RegistryEntry parse(byte[] bytes)
          Factory method to create RegistryEntry from serialized XML
static RegistryEntry parse(InputStream in)
          Factory method to create RegistryEntry from stream XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryEntry

public RegistryEntry(Document dom)
creates a RegistryEntry after XML DOM Document root element node name it is the name of the Entry

Parameters:
dom -

RegistryEntry

public RegistryEntry(String rootName)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
creates an empty RegistryEntry

Parameters:
rootName -
Throws:
IOException
SAXException
ParserConfigurationException
Method Detail

parse

public static RegistryEntry parse(byte[] bytes)
                           throws IOException,
                                  SAXException,
                                  ParserConfigurationException
Factory method to create RegistryEntry from serialized XML

Parameters:
bytes -
Returns:
RegistryEntry
Throws:
IOException
SAXException
ParserConfigurationException

parse

public static RegistryEntry parse(InputStream in)
                           throws IOException,
                                  SAXException,
                                  ParserConfigurationException
Factory method to create RegistryEntry from stream XML

Returns:
RegistryEntry
Throws:
IOException
SAXException
ParserConfigurationException

getAsInputStream

public InputStream getAsInputStream()
                             throws TransformerException
Returns:
the entry as InputStream
Throws:
IOException
TransformerException

getName

public String getName()
Returns:
the name of entry (which is the same as underlying Document's root name)

getDocument

public Document getDocument()
Returns:
the underlying Document

eXo JCR :: Component :: Extension Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.