org.enhydra.barracuda.plankton.data
Class NameSpace

java.lang.Object
  extended byorg.enhydra.barracuda.plankton.data.NameSpace

public class NameSpace
extends Object

This class defines a NameSpace entity (like a key) that can be used to set/retrieve objects from the ObjectRepository


Field Summary
protected static NameSpace globalNameSpace
           
protected static long lastTime
           
protected  String name
           
 
Constructor Summary
protected NameSpace()
          protected no args constructor (use the factory methods)
protected NameSpace(String iname)
           
 
Method Summary
 String getName()
          get the name of this NameSpace
static NameSpace globalInstance()
          get the global NameSpace instance
static NameSpace newInstance()
          get a new NameSpace instance using the default name
static NameSpace newInstance(String key)
          get a new NameSpace instance using the specified name
 String toString()
          return the String represenation of the NameSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

globalNameSpace

protected static NameSpace globalNameSpace

lastTime

protected static long lastTime
Constructor Detail

NameSpace

protected NameSpace()
protected no args constructor (use the factory methods)


NameSpace

protected NameSpace(String iname)
Method Detail

getName

public String getName()
get the name of this NameSpace

Returns:
the name of this NameSpace

toString

public String toString()
return the String represenation of the NameSpace

Returns:
the String represenation of the NameSpace

globalInstance

public static NameSpace globalInstance()
get the global NameSpace instance

Returns:
the global NameSpace instance

newInstance

public static NameSpace newInstance()
get a new NameSpace instance using the default name

Returns:
new NameSpace instance using the default name

newInstance

public static NameSpace newInstance(String key)
get a new NameSpace instance using the specified name

Parameters:
key - the namespace key
Returns:
the corresponding NameSpace


Copyright © 2003 BarracudaMVC.org All Rights Reserved.