public interface Furnace
Furnace container.| Modifier and Type | Method and Description |
|---|---|
ListenerRegistration<ContainerLifecycleListener> |
addContainerLifecycleListener(ContainerLifecycleListener listener)
Register a
ContainerLifecycleListener instance. |
AddonRepository |
addRepository(AddonRepository repository)
Add an
AddonRepository to be scanned for deployed and enabled Addon instances. |
AddonRepository |
addRepository(AddonRepositoryMode mode,
File repository)
Add an
AddonRepository to be scanned for deployed and enabled Addon instances. |
AddonRegistry |
getAddonRegistry(AddonRepository... repositories)
Get the central
AddonRegistry for this Furnace instance. |
String[] |
getArgs()
Get the arguments with which
Furnace should start. |
LockManager |
getLockManager()
Get the
LockManager associated with this Furnace instance |
List<AddonRepository> |
getRepositories()
Get an immutable
List of configured AddonRepository instances. |
ClassLoader |
getRuntimeClassLoader()
Get the
ClassLoader from which Furnace loaded its internal classes. |
ContainerStatus |
getStatus()
Get the current status of this
Furnace container |
Version |
getVersion()
Get the current runtime API version of
Furnace. |
boolean |
isServerMode()
|
void |
setArgs(String[] args)
Set the arguments with which
Furnace should start. |
Furnace |
setServerMode(boolean server)
When server mode is set to
true, Furnace will run as a server process until explicitly
stopped. |
Furnace |
start()
Start this
Furnace instance and wait for completion. |
Furnace |
start(ClassLoader loader)
Start this
Furnace instance and wait for completion, using the given ClassLoader to load core
implementation resources. |
Furnace |
startAsync()
|
Furnace |
startAsync(ClassLoader loader)
Start this
Furnace instance in a new background Thread, using the given ClassLoader to
load core implementation resources. |
Furnace |
stop()
Stop this
Furnace instance. |
Furnace startAsync()
Furnace startAsync(ClassLoader loader)
Furnace instance in a new background Thread, using the given ClassLoader to
load core implementation resources.Furnace start(ClassLoader loader)
Furnace instance and wait for completion, using the given ClassLoader to load core
implementation resources.boolean isServerMode()
Furnace setServerMode(boolean server)
AddonRegistry getAddonRegistry(AddonRepository... repositories)
AddonRegistry for this Furnace instance. Contains Addon registration and
service information. If specific AddonRepository instances are supplied, return an registry that functions
with the given repositories only.List<AddonRepository> getRepositories()
List of configured AddonRepository instances.AddonRepository addRepository(AddonRepositoryMode mode, File repository)
AddonRepository to be scanned for deployed and enabled Addon instances. This method must
not be called once Furnace is started.AddonRepository addRepository(AddonRepository repository)
AddonRepository to be scanned for deployed and enabled Addon instances. This method must
not be called once Furnace is started.ListenerRegistration<ContainerLifecycleListener> addContainerLifecycleListener(ContainerLifecycleListener listener)
ContainerLifecycleListener instance. Returns a ListenerRegistration that can be used to
un-register the listener.ClassLoader getRuntimeClassLoader()
ClassLoader from which Furnace loaded its internal classes.LockManager getLockManager()
LockManager associated with this Furnace instanceContainerStatus getStatus()
Furnace containervoid setArgs(String[] args)
Furnace should start. Typically this will simply be passed through from
public static void main(String[] args).Copyright © 2014 JBoss by Red Hat. All rights reserved.