Package jmri

Class NamedBeanHandle<T extends NamedBean>

  • Type Parameters:
    T - the class of the NamedBean

    public class NamedBeanHandle<T extends NamedBean>
    extends java.lang.Object
    Utility class for managing access to a NamedBean.

    This associates a particular name (either the user name or system name, typically) with a specific NamedBean. Later, when the user wants to do a rename operation, this is used to decide whether this particular reference should be renamed. Note, however, that these should only be created and access via the NamedBeanHandleManager instance.

    See Also:
    NamedBeanHandleManager, NamedBean
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T bean  
      (package private) java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedBeanHandle​(java.lang.String name, T bean)
      Create a handle to a particular bean accessed by a specific name.