org.glassfish.config.support
Class TargetBasedResolver
java.lang.Object
org.glassfish.config.support.TargetBasedResolver
- All Implemented Interfaces:
- CrudResolver
- Direct Known Subclasses:
- TargetAndNameBasedResolver
@Service
public class TargetBasedResolver
- extends Object
- implements CrudResolver
Resolver based on a supplied target parameter (with a possible default
value).
- Author:
- Jerome Dochez
|
Method Summary |
String |
getName()
|
<T extends org.jvnet.hk2.config.ConfigBeanProxy>
T |
|
resolve(AdminCommandContext context,
Class<T> type)
Retrieves the existing configuration object a command invocation is intented to mutate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TargetBasedResolver
public TargetBasedResolver()
resolve
public <T extends org.jvnet.hk2.config.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 contexttype - the type of the expected instance
- Returns:
- the instance or null if not found
getName
public String getName()
Copyright © 2012 GlassFish Community. All Rights Reserved.