org.jboss.repository.plugins
Class AbstractKernelRepository

java.lang.Object
  extended by org.jboss.repository.plugins.AbstractKernelRepository
All Implemented Interfaces:
KernelRepository
Direct Known Subclasses:
BasicKernelRepository

public class AbstractKernelRepository
extends Object
implements KernelRepository

Version:
$Revision: 1.3 $
Author:
Scott.Stark@jboss.org

Constructor Summary
AbstractKernelRepository(MetaDataCombiner combiner)
           
 
Method Summary
 MetaData addMetaData(Key key, MetaData data)
           
 Iterator findKeys(String nameRE, Map attributes)
          Query the repository for keys matching the name regular expression and attribute value regular expressions.
 Map getAllMetaData(Key key)
          Get the MetaData for the key and all its subkeys
 Iterator getKeyNames()
          Get the current repository keys
 Object getMetaData(Key key)
           
 Object getMetaData(Key key, MetaDataCombiner combiner)
           
 void loadMetaData(MetaDataLoader loader)
           
 MetaData removeMetaData(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKernelRepository

public AbstractKernelRepository(MetaDataCombiner combiner)
                         throws Exception
Throws:
Exception
Method Detail

getMetaData

public Object getMetaData(Key key)
Specified by:
getMetaData in interface KernelRepository

getMetaData

public Object getMetaData(Key key,
                          MetaDataCombiner combiner)
Specified by:
getMetaData in interface KernelRepository
Parameters:
key -
combiner -
Returns:
the metadata object for name if found, null otherwise

getAllMetaData

public Map getAllMetaData(Key key)
Get the MetaData for the key and all its subkeys

Specified by:
getAllMetaData in interface KernelRepository
Parameters:
key -
Returns:
Map for the key and matching subkeys

addMetaData

public MetaData addMetaData(Key key,
                            MetaData data)
Specified by:
addMetaData in interface KernelRepository

removeMetaData

public MetaData removeMetaData(Key key)
Specified by:
removeMetaData in interface KernelRepository

loadMetaData

public void loadMetaData(MetaDataLoader loader)
Specified by:
loadMetaData in interface KernelRepository

getKeyNames

public Iterator getKeyNames()
Description copied from interface: KernelRepository
Get the current repository keys

Specified by:
getKeyNames in interface KernelRepository
Returns:
Iterator of the repository keys

findKeys

public Iterator findKeys(String nameRE,
                         Map attributes)
Description copied from interface: KernelRepository
Query the repository for keys matching the name regular expression and attribute value regular expressions.

Specified by:
findKeys in interface KernelRepository
Parameters:
nameRE -
attributes -
Returns:
null currently


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.