Interface JDOClassDescriptorResolver

    • Method Detail

      • resolve

        ClassDescriptor resolve​(java.lang.String type)
                         throws ResolverException
        Returns the ClassDescriptor for the given class.
        Parameters:
        type - the class name to find the ClassDescriptor for
        Returns:
        the ClassDescriptor for the given class
        Throws:
        ResolverException - Indicates that the given Class cannot be resolved.
      • addClass

        void addClass​(java.lang.Class<?> domainClass)
        Adds a given Class instance manually, so that it can be loaded from the file system.
        Parameters:
        domainClass - A given Class instance.
      • addPackage

        void addPackage​(java.lang.String packageName)
        Adds a given package name manually, so that class descriptors can be loaded from this package (from the file system).
        Parameters:
        packageName - A given package name.
      • descriptorIterator

        java.util.Iterator<ClassDescriptor> descriptorIterator()
        Returns an iterator over all the known descriptors in the original order they have been added. Each element is of type ClassDescriptor.
        Returns:
        an Iterator over all the known JDO class descriptors.
      • getClassLoader

        java.lang.ClassLoader getClassLoader()
        Returns the ClassLoader instance as used internally.
        Returns:
        The ClassLoader instance used internally.
      • registerDescriptor

        void registerDescriptor​(java.lang.Class<?> type,
                                ClassDescriptor classDescriptor)
        Registers a ClassDescriptor with the descriptor cache.
        Parameters:
        type - Type of the class described by the ClassDescriptor to register.
        classDescriptor - The ClassDescriptor to register with the cache.