org.apache.directory.server.core.invocation
Class Invocation

java.lang.Object
  extended by org.apache.directory.server.core.invocation.Invocation

public class Invocation
extends java.lang.Object

Represents a call from JNDI Context to PartitionNexus.

Version:
$Rev: 434579 $, $Date: 2006-08-25 02:19:11 +0200 (Fri, 25 Aug 2006) $
Author:
Apache Directory Project

Constructor Summary
Invocation(PartitionNexusProxy proxy, javax.naming.Context caller, java.lang.String name)
          Creates a new instance that represents an invocation without parameters.
Invocation(PartitionNexusProxy proxy, javax.naming.Context caller, java.lang.String name, java.lang.Object[] parameters)
          Creates a new instance.
Invocation(PartitionNexusProxy proxy, javax.naming.Context caller, java.lang.String name, java.lang.Object[] parameters, java.util.Collection bypassed)
          Creates a new instance.
 
Method Summary
 javax.naming.Context getCaller()
          Returns the JNDI Context which made this invocation.
 java.lang.String getName()
          Returns the name of the called method.
 java.util.List getParameters()
          Returns the list of parameters parameters passed to the called method.
 PartitionNexusProxy getProxy()
          Returns the proxy object to the PartitionNexus.
 boolean hasBypass()
          Checks to see if any interceptors are bypassed by this Invocation.
 boolean isBypassed(java.lang.String interceptorName)
          Checks to see if an interceptor is bypassed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invocation

public Invocation(PartitionNexusProxy proxy,
                  javax.naming.Context caller,
                  java.lang.String name)
Creates a new instance that represents an invocation without parameters.

Parameters:
caller - the JNDI Context that made this invocation
name - the name of the called method

Invocation

public Invocation(PartitionNexusProxy proxy,
                  javax.naming.Context caller,
                  java.lang.String name,
                  java.lang.Object[] parameters)
Creates a new instance.

Parameters:
caller - the JNDI Context that made this invocation
name - the name of the called method
parameters - the array of parameters passed to the called method

Invocation

public Invocation(PartitionNexusProxy proxy,
                  javax.naming.Context caller,
                  java.lang.String name,
                  java.lang.Object[] parameters,
                  java.util.Collection bypassed)
Creates a new instance.

Parameters:
caller - the JNDI Context that made this invocation
name - the name of the called method
parameters - the array of parameters passed to the called method
bypassed - the set of bypassed Interceptor names
Method Detail

getProxy

public PartitionNexusProxy getProxy()
Returns the proxy object to the PartitionNexus.


getCaller

public javax.naming.Context getCaller()
Returns the JNDI Context which made this invocation.


getName

public java.lang.String getName()
Returns the name of the called method.


getParameters

public java.util.List getParameters()
Returns the list of parameters parameters passed to the called method.


isBypassed

public boolean isBypassed(java.lang.String interceptorName)
Checks to see if an interceptor is bypassed.

Parameters:
interceptorName - the interceptorName of the interceptor to check for bypass
Returns:
true if the interceptor should be bypassed, false otherwise

hasBypass

public boolean hasBypass()
Checks to see if any interceptors are bypassed by this Invocation.

Returns:
true if at least one bypass exists


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.