org.glassfish.jersey.internal.inject
Class JerseyClassAnalyzer

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.JerseyClassAnalyzer
All Implemented Interfaces:
org.glassfish.hk2.api.ClassAnalyzer

@Singleton
@Named(value="JerseyClassAnalyzer")
public final class JerseyClassAnalyzer
extends Object
implements org.glassfish.hk2.api.ClassAnalyzer

Implementation of the ClassAnalyzer that supports selection of the constructor with largest number of parameters as defined in and required by JAX-RS specification.

Author:
John Wells (john.wells at oracle.com), Marek Potociar (marek.potociar at oracle.com)

Nested Class Summary
static class JerseyClassAnalyzer.Binder
          HK2 binder for the JAX-RS compliant class analyzer implementation.
 
Field Summary
static String NAME
          Name of the analyzer service.
 
Fields inherited from interface org.glassfish.hk2.api.ClassAnalyzer
DEFAULT_IMPLEMENTATION_NAME
 
Method Summary
<T> Constructor<T>
getConstructor(Class<T> clazz)
           
<T> Set<Field>
getFields(Class<T> clazz)
           
<T> Set<Method>
getInitializerMethods(Class<T> clazz)
           
<T> Method
getPostConstructMethod(Class<T> clazz)
           
<T> Method
getPreDestroyMethod(Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Name of the analyzer service.

See Also:
Constant Field Values
Method Detail

getConstructor

public <T> Constructor<T> getConstructor(Class<T> clazz)
                              throws org.glassfish.hk2.api.MultiException,
                                     NoSuchMethodException
Specified by:
getConstructor in interface org.glassfish.hk2.api.ClassAnalyzer
Throws:
org.glassfish.hk2.api.MultiException
NoSuchMethodException

getInitializerMethods

public <T> Set<Method> getInitializerMethods(Class<T> clazz)
                                  throws org.glassfish.hk2.api.MultiException
Specified by:
getInitializerMethods in interface org.glassfish.hk2.api.ClassAnalyzer
Throws:
org.glassfish.hk2.api.MultiException

getFields

public <T> Set<Field> getFields(Class<T> clazz)
                     throws org.glassfish.hk2.api.MultiException
Specified by:
getFields in interface org.glassfish.hk2.api.ClassAnalyzer
Throws:
org.glassfish.hk2.api.MultiException

getPostConstructMethod

public <T> Method getPostConstructMethod(Class<T> clazz)
                              throws org.glassfish.hk2.api.MultiException
Specified by:
getPostConstructMethod in interface org.glassfish.hk2.api.ClassAnalyzer
Throws:
org.glassfish.hk2.api.MultiException

getPreDestroyMethod

public <T> Method getPreDestroyMethod(Class<T> clazz)
                           throws org.glassfish.hk2.api.MultiException
Specified by:
getPreDestroyMethod in interface org.glassfish.hk2.api.ClassAnalyzer
Throws:
org.glassfish.hk2.api.MultiException


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.