org.jvnet.hk2.component
Class CageBuilder.Registerer

java.lang.Object
  extended by org.jvnet.hk2.component.CageBuilder.Registerer
All Implemented Interfaces:
CageBuilder
Enclosing interface:
CageBuilder

public static final class CageBuilder.Registerer
extends java.lang.Object
implements CageBuilder

When CageBuilder enters habitat, look for existing inhabitants that were supposed to be caged by this and cage them all.

This is because we don't generally know which one comes first into the habitat — cage builder or caged component.

Normal CageBuilders register themselves as components, but this one is defined in HK2 so we have to get in by a special means.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jvnet.hk2.component.CageBuilder
CageBuilder.Registerer
 
Constructor Summary
CageBuilder.Registerer(Habitat habitat)
           
 
Method Summary
 void onEntered(Inhabitant<?> i)
          Called when an Inhabitant is entered into habitat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CageBuilder.Registerer

public CageBuilder.Registerer(Habitat habitat)
Method Detail

onEntered

public void onEntered(Inhabitant<?> i)
Description copied from interface: CageBuilder
Called when an Inhabitant is entered into habitat.

Specified by:
onEntered in interface CageBuilder


Copyright © 2009 Sun Microsystems, Inc.. All Rights Reserved.