com.sun.jini.example.hello
Class ConfirmingILFactory
java.lang.Object
net.jini.jeri.AbstractILFactory
net.jini.jeri.BasicILFactory
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 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. |
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 |
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.
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 interfacesimpl
- the remote objectoe
- 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 methodsimpl
- a remote object that the dispatcher is being created forcapabilities
- the transport capabilities of the server
- Returns:
- a confirming invocation dispatcher for the remote object
- Throws:
ExportException
Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.