Class TypeAndNameResolver

  • All Implemented Interfaces:
    CrudResolver

    @Service
    public class TypeAndNameResolver
    extends Object
    implements CrudResolver
    Resolver based on type + name.
    Author:
    Jerome Dochez
    • Constructor Detail

      • TypeAndNameResolver

        public TypeAndNameResolver()
    • Method Detail

      • resolve

        public <T extends ConfigBeanProxy> T resolve​(AdminCommandContext context,
                                                     Class<T> type)
        Description copied from interface: CrudResolver
        Retrieves the existing configuration object a command invocation is intented to mutate.
        Specified by:
        resolve in interface CrudResolver
        Parameters:
        context - the command invocation context
        type - the type of the expected instance
        Returns:
        the instance or null if not found