org.glassfish.hk2.inhabitants
Class InhabitantIntrospectionScanner

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

public class InhabitantIntrospectionScanner
extends java.lang.Object
implements java.lang.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, java.util.Set<java.lang.String> contracts, java.util.Set<java.lang.String> annotationTypeInterfaces)
           
 void findContractsFromAnnotations(AnnotatedElement ae, java.util.Set<java.lang.String> interfaces, java.util.Set<java.lang.String> annInterfaces)
           
 void findInterfaceContracts(InterfaceModel im, java.util.Set<java.lang.String> interfaces, java.util.Set<java.lang.String> annInterfaces)
           
 boolean isContract(AnnotatedElement type)
           
 java.util.Iterator<InhabitantParser> iterator()
           
static void populateExtraInhabitantMetaData(MultiMap<java.lang.String,java.lang.String> dest, AnnotatedElement ae)
          Retrieves the "extra" meta data from drilling into each annotation's methods.
static java.lang.String scrub(java.lang.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,
                                   java.util.Set<java.lang.String> interfaces,
                                   java.util.Set<java.lang.String> annInterfaces)

findContractsFromAnnotations

public void findContractsFromAnnotations(AnnotatedElement ae,
                                         java.util.Set<java.lang.String> interfaces,
                                         java.util.Set<java.lang.String> annInterfaces)

scrub

public static java.lang.String scrub(java.lang.Object obj)

findContracts

public void findContracts(ClassModel cm,
                          java.util.Set<java.lang.String> contracts,
                          java.util.Set<java.lang.String> annotationTypeInterfaces)

populateExtraInhabitantMetaData

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

Parameters:
dest -
ae -

iterator

public java.util.Iterator<InhabitantParser> iterator()
Specified by:
iterator in interface java.lang.Iterable<InhabitantParser>


Copyright © 2012 Oracle Corporation. All Rights Reserved.