Package org.glassfish.config.support
Class TypeAndNameResolver
- java.lang.Object
-
- org.glassfish.config.support.TypeAndNameResolver
-
- All Implemented Interfaces:
CrudResolver
@Service public class TypeAndNameResolver extends Object implements CrudResolver
Resolver based on type + name.- Author:
- Jerome Dochez
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.config.support.CrudResolver
CrudResolver.DefaultResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalStringManagerImpl
localStrings
-
Constructor Summary
Constructors Constructor Description TypeAndNameResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
<T extends ConfigBeanProxy>
Tresolve(AdminCommandContext context, Class<T> type)
Retrieves the existing configuration object a command invocation is intented to mutate.
-
-
-
Field Detail
-
localStrings
protected static final LocalStringManagerImpl localStrings
-
-
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 interfaceCrudResolver
- Parameters:
context
- the command invocation contexttype
- the type of the expected instance- Returns:
- the instance or null if not found
-
name
public String name()
-
-