org.apache.jetspeed.services.registry
Interface FileRegistry

All Known Implementing Classes:
CastorRegistryService, LateInitCastorRegistryService

public interface FileRegistry

Interface for manipulating RegistryFragments in a fragment based registry implementation.

Version:
$Id: FileRegistry.java,v 1.5 2005/03/21 18:21:44 sgala Exp $
Author:
Raphaël Luta

Field Summary
static int DEFAULT_REFRESH
           
 
Method Summary
 void createFragment(java.lang.String name, java.io.Reader reader, boolean persistent)
          Read and unmarshal a fragment in memory
 java.util.Map getFragmentMap()
           
 void loadFragment(java.lang.String file)
          Load and unmarshal a RegistryFragment from the file
 void refresh()
          Refresh the state of the registry implementation.
 void removeFragment(java.lang.String file)
          Remove a fragment from storage
 void saveFragment(java.lang.String file)
          Marshal and save a RegistryFragment to disk
 

Field Detail

DEFAULT_REFRESH

public static final int DEFAULT_REFRESH
See Also:
Constant Field Values
Method Detail

refresh

public void refresh()
Refresh the state of the registry implementation. Should be called whenever the underlying fragments are modified


getFragmentMap

public java.util.Map getFragmentMap()
Returns:
a Map of all fragments keyed by file names

createFragment

public void createFragment(java.lang.String name,
                           java.io.Reader reader,
                           boolean persistent)
Read and unmarshal a fragment in memory

Parameters:
name - the name of this fragment
reader - the reader to use for creating this fragment
persistent - whether this fragment should be persisted on disk in the registry

loadFragment

public void loadFragment(java.lang.String file)
Load and unmarshal a RegistryFragment from the file

Parameters:
file - the absolute file path storing this fragment

saveFragment

public void saveFragment(java.lang.String file)
Marshal and save a RegistryFragment to disk

Parameters:
file - the absolute file path storing this fragment

removeFragment

public void removeFragment(java.lang.String file)
Remove a fragment from storage

Parameters:
file - the absolute file path storing this fragment


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.