org.jvnet.hk2.component
Interface CageBuilder<T>

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

Deprecated. this is scheduled for removal

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

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<T>
          Deprecated. 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<T> i)
          Deprecated. Called when an Inhabitant is entered into habitat.
 

Method Detail

onEntered

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



Copyright © 2011 Oracle Corporation. All Rights Reserved.