Skip to content

ConfigMappingLoader does not have access to implementation classes #1456

Description

@dmlloyd

In a modular environment, the ConfigMappingLoader does not have access to generated classes without an explicit opens declaration in the module containing the mapping.

While this works, it would be slightly nicer if instead the user could provide a MethodHandles.Lookup to the various factories on ConfigMapperLoader which accept Class<?> presently. This would allow the user to control access more strictly (if they choose) and also to avoid having to modify the module descriptor for every package which has a config interface in it.

It might be tricky to use a ClassValue-based cache in conjunction with Lookup though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions