org.objectweb.jac.core
Class Naming

java.lang.Object
  |
  +--org.objectweb.jac.core.Naming

public class Naming
extends Object

This class implements useful static methods to manipulate JAC objects and names.

See Also:
NameRepository, NamingAC

Field Summary
static String FORCE_NAME
           
static String PARSER_NAME
          Name of configuration file parser
 
Constructor Summary
Naming()
           
 
Method Summary
static String getName(Object object)
          Returns the JAC name of a JAC object.
static Object getObject(String name)
          Returns the JAC object named name.
static void setName(String name)
          Sets the name of the next created object within the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORCE_NAME

public static String FORCE_NAME

PARSER_NAME

public static final String PARSER_NAME
Name of configuration file parser

See Also:
Constant Field Values
Constructor Detail

Naming

public Naming()
Method Detail

setName

public static void setName(String name)
Sets the name of the next created object within the current thread.


getName

public static String getName(Object object)
Returns the JAC name of a JAC object.

Equivalent to NameRepository.get().getName(object).

See Also:
Repository.getName(Object)

getObject

public static Object getObject(String name)
Returns the JAC object named name.

Equivalent to NameRepository.get().getObject(name).

See Also:
NameRepository.getObject(String)