Interface ClassLoadingStrategy.Configurable<S extends java.lang.ClassLoader>

    • Method Detail

      • with

        ClassLoadingStrategy.Configurable<S> with​(java.security.ProtectionDomain protectionDomain)
        Overrides the implicitly set default ProtectionDomain with an explicit one.
        Parameters:
        protectionDomain - The protection domain to apply or null if no protection domain is set.
        Returns:
        This class loading strategy with an explicitly set ProtectionDomain.
      • 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.