org.jvnet.hk2.component
Interface CageBuilder

All Known Implementing Classes:
CageBuilder.Registerer, CompanionSeed.Registerer

@Contract
@CagedBy(value=CageBuilder.Registerer.class)
public interface CageBuilder

Receives notifications when a component with CagedBy is entered into habitat.

The concrete registration hook classes are instanciated as components themselves, so in that way sub-classes can obtain contextual information, such as Habitat, via injection.

Author:
Kohsuke Kawaguchi
See Also:
CagedBy

Nested Class Summary
static class CageBuilder.Registerer
          When CageBuilder enters habitat, look for existing inhabitants that were supposed to be caged by this and cage them all.
 
Method Summary
 void onEntered(Inhabitant<?> i)
          Called when an Inhabitant is entered into habitat.
 

Method Detail

onEntered

void onEntered(Inhabitant<?> i)
Called when an Inhabitant is entered into habitat.



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