com.sun.jini.example.hello
Class ConfirmingILFactory

java.lang.Object
  extended by net.jini.jeri.AbstractILFactory
      extended by net.jini.jeri.BasicILFactory
          extended by com.sun.jini.example.hello.ConfirmingILFactory
All Implemented Interfaces:
net.jini.jeri.InvocationLayerFactory

public class ConfirmingILFactory
extends net.jini.jeri.BasicILFactory

Defines an InvocationLayerFactory that uses pop-up dialog windows to confirm calls.

Author:
Sun Microsystems, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.jini.jeri.InvocationLayerFactory
net.jini.jeri.InvocationLayerFactory.Instances
 
Constructor Summary
ConfirmingILFactory()
          Creates a InvocationLayerFactory that confirms calls, with no server constraints and no permission class.
ConfirmingILFactory(net.jini.core.constraint.MethodConstraints serverConstraints, Class permissionClass)
          Creates a InvocationLayerFactory that confirms calls, and uses the specified server constraints and permission class.
 
Method Summary
protected  net.jini.jeri.InvocationDispatcher createInvocationDispatcher(Collection methods, Remote impl, net.jini.jeri.ServerCapabilities capabilities)
          Returns a confirming invocation dispatcher for the remote object.
protected  InvocationHandler createInvocationHandler(Class[] interfaces, Remote impl, net.jini.jeri.ObjectEndpoint oe)
          Returns a confirming invocation handler for the object endpoint and interfaces.
 
Methods inherited from class net.jini.jeri.BasicILFactory
equals, getExtraProxyInterfaces, getPermissionClass, getServerConstraints, hashCode, toString
 
Methods inherited from class net.jini.jeri.AbstractILFactory
createInstances, getClassLoader, getInvocationDispatcherMethods, getProxyInterfaces, getRemoteInterfaces
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfirmingILFactory

public ConfirmingILFactory()
Creates a InvocationLayerFactory that confirms calls, with no server constraints and no permission class.


ConfirmingILFactory

public ConfirmingILFactory(net.jini.core.constraint.MethodConstraints serverConstraints,
                           Class permissionClass)
Creates a InvocationLayerFactory that confirms calls, and uses the specified server constraints and permission class.

Method Detail

createInvocationHandler

protected InvocationHandler createInvocationHandler(Class[] interfaces,
                                                    Remote impl,
                                                    net.jini.jeri.ObjectEndpoint oe)
Returns a confirming invocation handler for the object endpoint and interfaces.

Overrides:
createInvocationHandler in class net.jini.jeri.BasicILFactory
Parameters:
interfaces - the interfaces
impl - the remote object
oe - the object endpoint
Returns:
a confirming invocation handler for the object endpoint and interfaces

createInvocationDispatcher

protected net.jini.jeri.InvocationDispatcher createInvocationDispatcher(Collection methods,
                                                                        Remote impl,
                                                                        net.jini.jeri.ServerCapabilities capabilities)
                                                                 throws ExportException
Returns a confirming invocation dispatcher for the remote object.

Overrides:
createInvocationDispatcher in class net.jini.jeri.BasicILFactory
Parameters:
methods - a collection of Method instances for the remote methods
impl - a remote object that the dispatcher is being created for
capabilities - the transport capabilities of the server
Returns:
a confirming invocation dispatcher for the remote object
Throws:
ExportException


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