Package org.glassfish.config.support
Interface CrudResolver
-
- All Known Implementing Classes:
CrudResolver.DefaultResolver
,DomainExtensionResolver
,SecureAdminPrincipal.Resolver
,TargetAndNameBasedResolver
,TargetBasedResolver
,TypeAndNameResolver
,TypeResolver
@Contract public interface CrudResolver
A config resolver is responsible for finding the target object of a specified type on which a creation command invocation will be processed. Implementation of these interfaces can be injected with the command invocation parameters in order to determine which object should be returned- Author:
- Jerome Dochez
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CrudResolver.DefaultResolver
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ConfigBeanProxy>
Tresolve(AdminCommandContext context, Class<T> type)
Retrieves the existing configuration object a command invocation is intented to mutate.
-
-
-
Method Detail
-
resolve
<T extends ConfigBeanProxy> T resolve(AdminCommandContext context, Class<T> type)
Retrieves the existing configuration object a command invocation is intented to mutate.- Parameters:
context
- the command invocation contexttype
- the type of the expected instance- Returns:
- the instance or null if not found
-
-