Interface ClassLoadingStrategy.Configurable<S extends ClassLoader>

    • Method Detail

      • with

        ClassLoadingStrategy.Configurable<S> with​(PackageDefinitionStrategy packageDefinitionStrategy)
        Defines the supplied package definition strategy to be used for defining packages.
        Parameters:
        packageDefinitionStrategy - The package definer to be used.
        Returns:
        A version of this class loading strategy that applies the supplied package definition strategy.
      • allowExistingTypes

        ClassLoadingStrategy.Configurable<S> allowExistingTypes()
        Determines if this class loading strategy should not throw an exception when attempting to load a class that was already loaded. In this case, the already loaded class is used instead of the generated class.
        Returns:
        A version of this class loading strategy that does not throw an exception when a class is already loaded.
      • opened

        ClassLoadingStrategy.Configurable<S> opened()
        With an opened class loading strategy, it is assured that types can be added to the class loader, either by indirect injection using this strategy or by creating a class loader that explicitly supports injection.
        Returns:
        A version of this class loading strategy that opens for future injections into a class loader.