|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.jndi.ContextVisitor
An abstract JNDI context visitor. The visitor is created with an error handler to report problems to and then started with optional filter for the scanning to use.
| Field Summary | |
protected javax.naming.Context |
context
|
protected ErrorHandler |
handler
|
| Constructor Summary | |
ContextVisitor(javax.naming.Context context,
ErrorHandler handler)
Create visitor |
|
| Method Summary | |
void |
start(java.lang.Class[] classes)
Scan the context for object. |
void |
start(java.lang.String filter)
Scan the context for object. |
void |
start(java.lang.String filter,
java.lang.Class[] classes)
Scan the context for object. |
abstract void |
visit(java.lang.String name,
java.lang.Object o)
Visit an object bound to the context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.naming.Context context
protected ErrorHandler handler
| Constructor Detail |
public ContextVisitor(javax.naming.Context context,
ErrorHandler handler)
| Method Detail |
public abstract void visit(java.lang.String name,
java.lang.Object o)
name - Context name of the objecto - Object to visitpublic void start(java.lang.Class[] classes)
classes - Class types to visit, may be null
public void start(java.lang.String filter)
throws java.util.regex.PatternSyntaxException
filter - Regexp filter to match name against
java.util.regex.PatternSyntaxException - If the regexp filter is invalid
public void start(java.lang.String filter,
java.lang.Class[] classes)
throws java.util.regex.PatternSyntaxException
If all of the parameters are null the visitor will visit every object found.
filter - Regexp name filter, may be nullclasses - Class types to visit, may be null
java.util.regex.PatternSyntaxException - If the regexp filter is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||