Top Description Fields Constructors Methods
io.vertx.core.impl.launcher

public Class ServiceCommandFactoryLoader

extends Object
implements CommandFactoryLookup
Class Inheritance
All Implemented Interfaces
io.vertx.core.spi.launcher.CommandFactoryLookup
Imports
io.vertx.core.ServiceHelper, io.vertx.core.spi.launcher.CommandFactory, .CommandFactoryLookup, java.util.ArrayList, .Collection, .List

Looks for command factories using a service loader.
Author
Clement Escoffier

Field Summary

Modifier and TypeField and Description
private Collection<CommandFactory<C extends Command>>

Constructor Summary

AccessConstructor and Description
public
ServiceCommandFactoryLoader()

Creates a new instance of ServiceCommandFactoryLoader using the classloader having loaded the ServiceCommandFactoryLoader class.

public
ServiceCommandFactoryLoader(ClassLoader loader)

Creates a new instance of ServiceCommandFactoryLoader using specified classloader.

Method Summary

Modifier and TypeMethod and Description
public Collection<CommandFactory<?>>
lookup()

Implements io.vertx.core.spi.launcher.CommandFactoryLookup.lookup.

Looks for command implementation and instantiated them.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commandsback to summary
private Collection<CommandFactory<C extends Command>> commands

Constructor Detail

ServiceCommandFactoryLoaderback to summary
public ServiceCommandFactoryLoader()

Creates a new instance of ServiceCommandFactoryLoader using the classloader having loaded the ServiceCommandFactoryLoader class.

ServiceCommandFactoryLoaderback to summary
public ServiceCommandFactoryLoader(ClassLoader loader)

Creates a new instance of ServiceCommandFactoryLoader using specified classloader.

Method Detail

lookupback to summary
public Collection<CommandFactory<?>> lookup()

Implements io.vertx.core.spi.launcher.CommandFactoryLookup.lookup.

Doc from io.vertx.core.spi.launcher.CommandFactoryLookup.lookup.

Looks for command implementation and instantiated them.

Returns:Collection<CommandFactory<?>>

the set of commands, empty if none are found.

Annotations
@Override