org.jvnet.hk2.component
Class InhabitantTrackerContextImpl

java.lang.Object
  extended by org.jvnet.hk2.component.InhabitantTrackerContextImpl
All Implemented Interfaces:
InhabitantTrackerContext

public class InhabitantTrackerContextImpl
extends Object
implements InhabitantTrackerContext

Default implementation of InhabitantTrackerContext.

Author:
Jeff Trent

Field Summary
protected  Set<String> classNames
           
protected  InhabitantFilter filter
           
protected  Boolean presence
           
 
Constructor Summary
InhabitantTrackerContextImpl(InhabitantFilter filter, Boolean presence, Set<String> classNames)
           
 
Method Summary
 Set<String> getClassNames()
          The set of contract class names that form the initial filter condition.
 InhabitantFilter getFilter()
          The filter to call for finer-level of matching beyond class/contract name.
 Boolean getPresenceFlag()
          Presence flag: true, for tracking positive presence of inhabitants false, for tracking negative presence (i.e.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filter

protected final InhabitantFilter filter

presence

protected final Boolean presence

classNames

protected final Set<String> classNames
Constructor Detail

InhabitantTrackerContextImpl

public InhabitantTrackerContextImpl(InhabitantFilter filter,
                                    Boolean presence,
                                    Set<String> classNames)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getClassNames

public Set<String> getClassNames()
Description copied from interface: InhabitantTrackerContext
The set of contract class names that form the initial filter condition.

Specified by:
getClassNames in interface InhabitantTrackerContext
Returns:
the Set of contract type names to filter on; must be non-empty set

getFilter

public InhabitantFilter getFilter()
Description copied from interface: InhabitantTrackerContext
The filter to call for finer-level of matching beyond class/contract name.

Specified by:
getFilter in interface InhabitantTrackerContext
Returns:
the Filter matcher

getPresenceFlag

public Boolean getPresenceFlag()
Description copied from interface: InhabitantTrackerContext
Presence flag: true, for tracking positive presence of inhabitants false, for tracking negative presence (i.e. disappearance) of inhabitants null, for tracking both cases (any inhabitant changes)

Specified by:
getPresenceFlag in interface InhabitantTrackerContext


Copyright © 2011 Oracle Corporation. All Rights Reserved.