public synchronized void nameObject ( String namePrefix , INameable object ) { String name = namePrefix + Integer . toString ( _nextValue ++ ) ; object . setObjectName ( name ) ; }
This method will create a unique name for an INameable object . The name will be unque within the session . This will throw an IllegalStateException if INameable . setObjectName has previously been called on object .