org.jvnet.hk2.component
Class InhabitantTrackerContextImpl

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

public class InhabitantTrackerContextImpl
extends java.lang.Object
implements InhabitantTrackerContext

Default implementation of InhabitantTrackerContext.

Since:
3.1
Author:
Jeff Trent

Field Summary
protected  java.util.Set<java.lang.String> classNames
           
protected  InhabitantFilter filter
           
protected  java.lang.Boolean presence
           
 
Constructor Summary
InhabitantTrackerContextImpl(InhabitantFilter filter, java.lang.Boolean presence, java.util.Set<java.lang.String> classNames)
           
 
Method Summary
 java.util.Set<java.lang.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.
 java.lang.Boolean getPresenceFlag()
          Presence flag: true, for tracking positive presence of inhabitants false, for tracking negative presence (i.e.
 java.lang.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 java.lang.Boolean presence

classNames

protected final java.util.Set<java.lang.String> classNames
Constructor Detail

InhabitantTrackerContextImpl

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getClassNames

public java.util.Set<java.lang.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 java.lang.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 © 2010 Oracle Corporation. All Rights Reserved.