← 返回首页
ObjectService (SciJava Javadocs 0-SNAPSHOT API)
JavaScript is disabled on your browser.
org.scijava.object

Interface ObjectService

    • Method Detail

      • getObjects

        default <T> List<T> getObjects(Class<T> type)
        Gets a list of all registered objects compatible with the given type.
      • getName

        default String getName(Object obj)
        Gets the name belonging to a given object.

        If no explicit name was provided at registration time, the name will be derived from Named.getName() if the object implements Named, or from the Object.toString() otherwise. It is guaranteed that this method will not return null.

      • addObject

        default void addObject(Object obj)
        Registers an object with the object service.
      • addObject

        default void addObject(Object obj, String name)
        Registers a named object with the object service.
      • removeObject

        default void removeObject(Object obj)
        Deregisters an object with the object service.

Copyright © 2015–2022 SciJava. All rights reserved.