org.jvnet.hk2.component
Class CageBuilder.Registerer<T>
java.lang.Object
org.jvnet.hk2.component.CageBuilder.Registerer<T>
- All Implemented Interfaces:
- CageBuilder<T>
- Enclosing interface:
- CageBuilder<T>
public static final class CageBuilder.Registerer<T>
- extends java.lang.Object
- implements CageBuilder<T>
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CageBuilder.Registerer
public CageBuilder.Registerer(Habitat habitat)
onEntered
public void onEntered(Inhabitant<T> i)
- Description copied from interface:
CageBuilder
- Called when an
Inhabitant is entered into habitat.
- Specified by:
onEntered in interface CageBuilder<T>
Copyright © 2011 Oracle Corporation. All Rights Reserved.