org.glassfish.config.support
Class TypeAndNameResolver

java.lang.Object
  extended by org.glassfish.config.support.TypeAndNameResolver
All Implemented Interfaces:
CrudResolver

@Service
public class TypeAndNameResolver
extends java.lang.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
protected static LocalStringManagerImpl localStrings
           
 
Constructor Summary
TypeAndNameResolver()
           
 
Method Summary
<T extends org.jvnet.hk2.config.ConfigBeanProxy>
T
resolve(AdminCommandContext context, java.lang.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
 

Field Detail

localStrings

protected static final LocalStringManagerImpl localStrings
Constructor Detail

TypeAndNameResolver

public TypeAndNameResolver()
Method Detail

resolve

public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T resolve(AdminCommandContext context,
                                                                  java.lang.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


Copyright © 2012 GlassFish Community. All Rights Reserved.