Class TypeResolver

java.lang.Object
org.glassfish.config.support.TypeResolver
All Implemented Interfaces:
CrudResolver

@Service(name="type") public class TypeResolver extends Object implements CrudResolver
Resolver for an un-named type. If the type instance is not found, it will create an instance of it under the domain instance.
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 final com.sun.enterprise.util.LocalStringManagerImpl
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.jvnet.hk2.config.ConfigBeanProxy>
    T
    resolve(org.glassfish.api.admin.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
  • Field Details

    • localStrings

      protected static final com.sun.enterprise.util.LocalStringManagerImpl localStrings
  • Constructor Details

    • TypeResolver

      public TypeResolver()
  • Method Details

    • resolve

      public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T resolve(org.glassfish.api.admin.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