org.jvnet.hk2.component
Class InhabitantTrackerContextImpl
java.lang.Object
org.jvnet.hk2.component.InhabitantTrackerContextImpl
- All Implemented Interfaces:
- InhabitantTrackerContext
public class InhabitantTrackerContextImpl
- extends Object
- implements InhabitantTrackerContext
Default implementation of InhabitantTrackerContext.
- Author:
- Jeff Trent
filter
protected final InhabitantFilter filter
presence
protected final Boolean presence
classNames
protected final Set<String> classNames
InhabitantTrackerContextImpl
public InhabitantTrackerContextImpl(InhabitantFilter filter,
Boolean presence,
Set<String> classNames)
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.