---
title: "Ice.Plugin.*"
url: https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties
language: java
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Ice.Plugin.\*

Programming language: Java. Other languages: [C++](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/csharp.md), [JavaScript](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/php.md), [Python](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/python.md), [Ruby](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/ruby.md), [Swift](https://docs.zeroc.com/ice/3.8/property-reference/ice-plugin-properties/swift.md).

## Ice.Plugin.*name*

`Ice.Plugin.name=[path:]class [args]`

Defines a Java plug-in to be installed during communicator initialization. The specified class must implement the [PluginFactory](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/PluginFactory.html) interface.

Arguments of the form `--name.X=Y` set the property `name.X` to `Y` and are removed from the argument list passed to the factory, where `name` is the plug-in name. For example, `--MyPlugin.Mode=fast` sets `MyPlugin.Mode=fast`.

Ice passes the remaining arguments to the factory's `create` method. For example:

```config
Ice.Plugin.MyPlugin=MyFactory arg1 arg2
```

The factory class and its no-argument constructor must be public.

Whitespace separates the arguments, and any arguments that contain whitespace must be enclosed in quotes.

If `path` is specified, it may be the path name of a JAR file or class directory, as shown below:

```config
Ice.Plugin.MyPlugin=MyFactory.jar:MyFactory
Ice.Plugin.MyOtherPlugin=/classes:MyOtherFactory
```

If `path` contains spaces, it must be enclosed in quotes:

```config
Ice.Plugin.MyPlugin="factory classes.jar":MyFactory
```

If `class` is specified without a path, Ice attempts to load the class using class loaders. See [InitializationData.classLoader](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/InitializationData.html#classLoader).

A matching `Ice.Plugin.name` property can also supply arguments for a factory installed through `InitializationData.pluginFactories`. Ice ignores the first token of the value, which holds the entry point of a plug-in loaded through configuration, and passes the remaining tokens to the factory. By convention, this first token is `1`.
