public class SystemAccessProxyTrustILFactory extends ProxyTrustILFactory
ActivationSystem
to use Jini extensible remote invocation (Jini ERI), that is similar
to ProxyTrustILFactory except the remote object must be an
ActivationSystem instance and the returned dispatcher
optionally accepts calls from the local host and optionally enforces a
GroupPolicy on calls to registerGroup and setActivationGroupDesc.SystemAccessILFactoryInvocationLayerFactory.Instances| Constructor and Description |
|---|
SystemAccessProxyTrustILFactory()
Creates an invocation layer factory that creates an invocation
dispatcher with a
DefaultGroupPolicy instance and a
null class loader. |
SystemAccessProxyTrustILFactory(GroupPolicy policy,
ClassLoader loader)
Creates an invocation layer factory that creates an invocation
dispatcher with the specified group policy and the specified class
loader.
|
SystemAccessProxyTrustILFactory(MethodConstraints serverConstraints)
Creates a factory with a
null class loader, the
specified server constraints, the SystemPermission
permission class, and a DefaultGroupPolicy instance. |
SystemAccessProxyTrustILFactory(MethodConstraints serverConstraints,
Class permClass,
GroupPolicy policy,
ClassLoader loader)
Creates a factory with the specified server constraints, permission
class, group policy, and class loader.
|
| Modifier and Type | Method and Description |
|---|---|
protected InvocationDispatcher |
createInvocationDispatcher(Collection methods,
Remote impl,
ServerCapabilities caps)
Returns a
SystemAccessILFactory.SystemDispatcher
instance constructed with the specified methods, the class loader
specified during construction, the remote object, server capabilities,
and the server constraints, permission class, and group policy that
this factory was constructed with and a flag indicating whether the
dispatcher should only accept calls from the local host. |
getRemoteInterfacescreateInvocationHandler, equals, getExtraProxyInterfaces, getPermissionClass, getServerConstraints, hashCode, toStringcreateInstances, getClassLoader, getInvocationDispatcherMethods, getProxyInterfacespublic SystemAccessProxyTrustILFactory()
DefaultGroupPolicy instance and a
null class loader. This invocation dispatcher only
accepts calls from the local host and enforces the group policy on
calls to registerGroup and
setActivationGroupDesc.public SystemAccessProxyTrustILFactory(GroupPolicy policy, ClassLoader loader)
null) on calls to registerGroup and setActivationGroupDesc.loader - the class loader, or nullpolicy - the group policy, or nullpublic SystemAccessProxyTrustILFactory(MethodConstraints serverConstraints)
null class loader, the
specified server constraints, the SystemPermission
permission class, and a DefaultGroupPolicy instance.serverConstraints - the server constraints, or nullpublic SystemAccessProxyTrustILFactory(MethodConstraints serverConstraints, Class permClass, GroupPolicy policy, ClassLoader loader)
null) on calls to registerGroup and setActivationGroupDesc.serverConstraints - the server constraints, or nullpermClass - the permission class, or nullpolicy - the group policy, or nullloader - the class loader, or nullIllegalArgumentException - if the permission class is abstract, is
not a subclass of Permission, or does not have
a public constructor that has either one String parameter
or one Method parameter and has no declared exceptionsprotected InvocationDispatcher createInvocationDispatcher(Collection methods, Remote impl, ServerCapabilities caps) throws ExportException
SystemAccessILFactory.SystemDispatcher
instance constructed with the specified methods, the class loader
specified during construction, the remote object, server capabilities,
and the server constraints, permission class, and group policy that
this factory was constructed with and a flag indicating whether the
dispatcher should only accept calls from the local host.createInvocationDispatcher in class BasicILFactorymethods - a collection of Method instances for the
remote methodsimpl - a remote object that the dispatcher is being created forcaps - the transport capabilities of the serverSystemAccessILFactory.SystemDispatcher
instance constructed with the specified methods, remote object, and
server capabilities, and the server constraints, permission class,
group policy, local host access check condition, and class loader that
this factory was constructed withNullPointerException - if any argument is null,
or if methods contains a null elementExportException - if there is a problem creating the
dispatcherCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.