com.sun.jini.outrigger
Class OutriggerServerImpl.AllReps

java.lang.Object
  extended by com.sun.jini.outrigger.OutriggerServerImpl.AllReps
All Implemented Interfaces:
RepEnum
Enclosing class:
OutriggerServerImpl

private class OutriggerServerImpl.AllReps
extends Object
implements RepEnum

An iterator that returns all the reps in the space that are of at least the given class. It works through the contents of each EntryHolder in turn, exhausting each holder's enumerated contents.

See Also:
EntryHolder.contents

Field Summary
(package private)  RepEnum curEnum
           
(package private)  Stack toDo
           
(package private)  Txn txn
           
 
Constructor Summary
OutriggerServerImpl.AllReps(String classFor, Txn txn)
          Create a new AllReps object for the given class.
 
Method Summary
private  RepEnum enumFor(String classFor)
          Return the RepEnum for the given class.
 EntryRep nextRep()
          Return the next EntryRep object, or null if there is none.
private  void setup(String classFor)
          Set up the enumerator for the given class, adding any of its subclasses to the toDo stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

curEnum

RepEnum curEnum

toDo

Stack toDo

txn

Txn txn
Constructor Detail

OutriggerServerImpl.AllReps

OutriggerServerImpl.AllReps(String classFor,
                            Txn txn)
Create a new AllReps object for the given class.

Method Detail

setup

private void setup(String classFor)
Set up the enumerator for the given class, adding any of its subclasses to the toDo stack. Only direct subclasses are added -- the rest will be picked up when the subclasses are set up.


enumFor

private RepEnum enumFor(String classFor)
Return the RepEnum for the given class.


nextRep

public EntryRep nextRep()
Description copied from interface: RepEnum
Return the next EntryRep object, or null if there is none. Repeated calls at the end simply continue to return null.

Specified by:
nextRep in interface RepEnum


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.