org.glassfish.hk2.inhabitants
Class InhabitantIntrospectionScanner

java.lang.Object
  extended by org.glassfish.hk2.inhabitants.InhabitantIntrospectionScanner
All Implemented Interfaces:
Iterable<InhabitantParser>

public class InhabitantIntrospectionScanner
extends Object
implements Iterable<InhabitantParser>

Inhabitant scanner based on introspection information rather than statically generated inhabitant file


Constructor Summary
InhabitantIntrospectionScanner(ParsingContext context)
           
 
Method Summary
 void findContracts(ClassModel cm, Set<String> contracts, Set<String> annotationTypeInterfaces)
           
 void findContractsFromAnnotations(AnnotatedElement ae, Set<String> interfaces, Set<String> annInterfaces)
           
 void findInterfaceContracts(InterfaceModel im, Set<String> interfaces, Set<String> annInterfaces)
           
 boolean isContract(AnnotatedElement type)
           
 Iterator<InhabitantParser> iterator()
           
static void populateExtraInhabitantMetaData(MultiMap<String,String> dest, AnnotatedElement ae)
          Retrieves the "extra" meta data from drilling into each annotation's methods.
static String scrub(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InhabitantIntrospectionScanner

public InhabitantIntrospectionScanner(ParsingContext context)
Method Detail

isContract

public boolean isContract(AnnotatedElement type)

findInterfaceContracts

public void findInterfaceContracts(InterfaceModel im,
                                   Set<String> interfaces,
                                   Set<String> annInterfaces)

findContractsFromAnnotations

public void findContractsFromAnnotations(AnnotatedElement ae,
                                         Set<String> interfaces,
                                         Set<String> annInterfaces)

scrub

public static String scrub(Object obj)

findContracts

public void findContracts(ClassModel cm,
                          Set<String> contracts,
                          Set<String> annotationTypeInterfaces)

populateExtraInhabitantMetaData

public static void populateExtraInhabitantMetaData(MultiMap<String,String> dest,
                                                   AnnotatedElement ae)
Retrieves the "extra" meta data from drilling into each annotation's methods.

Parameters:
dest -
ae -

iterator

public Iterator<InhabitantParser> iterator()
Specified by:
iterator in interface Iterable<InhabitantParser>


Copyright © 2013 Oracle Corporation. All Rights Reserved.