public final class ComponentUtility extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
close(Object aComponent) |
|
static void |
close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
decompose(Object aComponent) |
Helper method, decomposes the given
Component in case it is
Decomposeable. |
static void |
decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
Helper method for decomposing all
Decomposeable Component
instances found in the provided Collection. |
static void |
decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
Helper method for decomposing all
Decomposeable Component
instances found in the provided Collection. |
static void |
decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
Helper method for decomposing all
Decomposeable Component
instances found in the provided Collection. |
static void |
decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
Helper method for decomposing all
Decomposeable Component
instances found in the provided Collection. |
static void |
destroy(Object aComponent) |
Helper method, destroys the given
Component in case it is
Destroyable. |
static void |
destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
dispose(Object aComponent) |
Helper method, disposes the given
Component in case it is
Disposable.Disposedable. |
static void |
dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
Helper method for decomposing all
Disposable.Disposedable Component
instances found in the provided Collection. |
static void |
dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
Helper method for decomposing all
Disposable.Disposedable Component
instances found in the provided Collection. |
static void |
dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
Helper method for decomposing all
Disposable.Disposedable Component
instances found in the provided Collection. |
static void |
dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
Helper method for decomposing all
Disposable.Disposedable Component
instances found in the provided Collection. |
static <T> void |
execute(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
org.refcodes.component.ComponentUtility.CallableFactory<T> aCallableFactory,
Collection<?> aComponents,
Object... aArguments) |
Helper method for initializing all
Initializable
Component instances found in the provided Collection. |
static void |
flush(Object aComponent) |
|
static void |
flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
initialize(Object aComponent) |
Helper method, initializes the given
Component in case it is
Initializable. |
static <CTX> void |
initialize(Object aComponent,
CTX aContext) |
Helper method, configuring the given
Component in case it is
Configurable. |
static <CTX> void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
CTX aContext,
Object... aComponents) |
Helper method for configuring all
ConfigureException
Component instances found in the provided Collection. |
static <CTX> void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
CTX aContext,
Collection<?> aComponents) |
Helper method for configuring all
Configurable Component
instances found in the provided Collection. |
static void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
Helper method for initializing all
Initializable
Component instances found in the provided Collection. |
static void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
Helper method for initializing all
Initializable
Component instances found in the provided Collection. |
static <CTX> void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
CTX aContext,
Object... aComponents) |
Helper method for configuring all
ConfigureException
Component instances found in the provided Collection. |
static <CTX> void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
CTX aContext,
Collection<?> aComponents) |
Helper method for configuring all
Configurable Component
instances found in the provided Collection. |
static void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
Helper method for initializing all
Initializable
Component instances found in the provided Collection. |
static void |
initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
Helper method for initializing all
Initializable
Component instances found in the provided Collection. |
static void |
open(Object aComponent) |
|
static <CON> void |
open(Object aComponent,
CON aConnection) |
Helper method, configuring the given
Component in case it is
ConnectionOpenable. |
static <INPUT,OUTPUT> |
open(Object aComponent,
INPUT aInputConnection,
OUTPUT aOutputConnection) |
Helper method, configuring the given
Component in case it is
BidirectionalConnectionOpenable. |
static <CON> void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
CON aConnection,
Object... aComponents) |
Helper method for configuring all
ConfigureException
Component instances found in the provided Collection. |
static <CON> void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
CON aConnection,
Collection<?> aComponents) |
Helper method for configuring all
ConnectionOpenable
Component instances found in the provided Collection. |
static <INPUT,OUTPUT> |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
INPUT aInputConnection,
OUTPUT aOutputConnection,
Object... aComponents) |
Helper method for configuring all
ConfigureException
Component instances found in the provided Collection. |
static <INPUT,OUTPUT> |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
INPUT aInputConnection,
OUTPUT aOutputConnection,
Collection<?> aComponents) |
Helper method for configuring all
BidirectionalConnectionOpenable
Component instances found in the provided Collection. |
static void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static <CON> void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
CON aConnection,
Object... aComponents) |
Helper method for configuring all
ConfigureException
Component instances found in the provided Collection. |
static <CON> void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
CON aConnection,
Collection<?> aComponents) |
Helper method for configuring all
ConnectionOpenable
Component instances found in the provided Collection. |
static <INPUT,OUTPUT> |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
INPUT aInputConnection,
OUTPUT aOutputConnection,
Object... aComponents) |
Helper method for configuring all
ConfigureException
Component instances found in the provided Collection. |
static <INPUT,OUTPUT> |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
INPUT aInputConnection,
OUTPUT aOutputConnection,
Collection<?> aComponents) |
Helper method for configuring all
BidirectionalConnectionOpenable
Component instances found in the provided Collection. |
static void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
pause(Object aComponent) |
|
static void |
pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
reset(Object aComponent) |
|
static void |
reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
resume(Object aComponent) |
|
static void |
resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
start(Object aComponent) |
|
static void |
start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
|
static void |
stop(Object aComponent) |
|
static void |
stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Object... aComponents) |
|
static void |
stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents) |
|
static void |
stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Object... aComponents) |
|
static void |
stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents) |
public static void initialize(Object aComponent) throws InitializeException
Component in case it is
Initializable.aComponent - The Component to initialize.InitializeException - Thrown in case initialization failed.public static void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws InitializeException
Initializable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aComponents - The Collection containing the
Component instances to initialize (in case them implement
the Initializable interface).InitializeException - in case initialization of at least one
Initializable instance failed.public static void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws InitializeException
Initializable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).InitializeException - in case initialization of at least one
Initializable instance failed.@SafeVarargs public static void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws InitializeException
Initializable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aComponents - The Collection containing the
Component instances to initialize (in case them implement
the Initializable interface).InitializeException - in case initialization of at least one
Initializable instance failed.@SafeVarargs public static void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws InitializeException
Initializable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).InitializeException - in case initialization of at least one
Initializable instance failed.public static <CTX> void initialize(Object aComponent, CTX aContext) throws InitializeException
Component in case it is
Configurable.CTX - the generic typeaComponent - The Component to configure.aContext - the contextConfigureException - the configure exceptionInitializeExceptionpublic static <CTX> void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
CTX aContext,
Collection<?> aComponents)
throws ConfigureException
Configurable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.CTX - the generic typeaComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aContext - the contextaComponents - The Collection containing the
Component instances to initialize (in case them implement
the Configurable interface).ConfigureException - the configure exceptionpublic static <CTX> void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
CTX aContext,
Collection<?> aComponents)
throws ConfigureException
Configurable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.CTX - the generic typeaComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aContext - the contextaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).ConfigureException - the configure exception@SafeVarargs public static <CTX> void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, CTX aContext, Object... aComponents) throws ConfigureException
ConfigureException
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.CTX - the generic typeaComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aContext - the contextaComponents - The Collection containing the
Component instances to initialize (in case them implement
the ConfigureException interface).ConfigureException - the configure exception@SafeVarargs public static <CTX> void initialize(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, CTX aContext, Object... aComponents) throws ConfigureException
ConfigureException
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.CTX - the generic typeaComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aContext - the contextaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).ConfigureException - the configure exceptionpublic static void start(Object aComponent) throws StartException
aComponent - The Component to start.StartException - Thrown in case initialization failed.public static void start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws StartException
Startable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when starting the
Component instances.aComponents - The Collection containing the
Component instances to start (in case them implement the
Startable interface).StartException - in case initialization of at least one
Startable instance failed.public static void start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws StartException
Startable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when starting the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).StartException - in case initialization of at least one
Startable instance failed.@SafeVarargs public static void start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws StartException
Startable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when starting the
Component instances.aComponents - The Collection containing the
Component instances to start (in case them implement the
Startable interface).StartException - in case initialization of at least one
Startable instance failed.@SafeVarargs public static void start(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws StartException
Startable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when starting the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).StartException - in case initialization of at least one
Startable instance failed.public static void pause(Object aComponent) throws PauseException
aComponent - The Component to pause.PauseException - Thrown in case initialization failed.public static void pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws PauseException
Pausable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when pausing the
Component instances.aComponents - The Collection containing the
Component instances to pause (in case them implement the
Pausable interface).PauseException - in case initialization of at least one
Pausable instance failed.public static void pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws PauseException
Pausable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when pausing the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).PauseException - in case initialization of at least one
Pausable instance failed.@SafeVarargs public static void pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws PauseException
Pausable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when pausing the
Component instances.aComponents - The Collection containing the
Component instances to pause (in case them implement the
Pausable interface).PauseException - in case initialization of at least one
Pausable instance failed.@SafeVarargs public static void pause(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws PauseException
Pausable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when pausing the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).PauseException - in case initialization of at least one
Pausable instance failed.public static void resume(Object aComponent) throws ResumeException
aComponent - The Component to resume.ResumeException - Thrown in case initialization failed.public static void resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws ResumeException
Resumable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when resuming the
Component instances.aComponents - The Collection containing the
Component instances to resume (in case them implement the
Resumable interface).ResumeException - in case initialization of at least one
Resumable instance failed.public static void resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws ResumeException
Resumable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when resuming the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).ResumeException - in case initialization of at least one
Resumable instance failed.@SafeVarargs public static void resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws ResumeException
Resumable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when resuming the
Component instances.aComponents - The Collection containing the
Component instances to resume (in case them implement the
Resumable interface).ResumeException - in case initialization of at least one
Resumable instance failed.@SafeVarargs public static void resume(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws ResumeException
Resumable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when resuming the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).ResumeException - in case initialization of at least one
Resumable instance failed.public static void stop(Object aComponent) throws StopException
aComponent - The Component to stop.StopException - Thrown in case initialization failed.public static void stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws StopException
Stoppable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when stoping the
Component instances.aComponents - The Collection containing the
Component instances to stop (in case them implement the
Stoppable interface).StopException - in case initialization of at least one
Stoppable instance failed.public static void stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws StopException
Stoppable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when stoping the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).StopException - in case initialization of at least one
Stoppable instance failed.@SafeVarargs public static void stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws StopException
Stoppable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when stoping the
Component instances.aComponents - The Collection containing the
Component instances to stop (in case them implement the
Stoppable interface).StopException - in case initialization of at least one
Stoppable instance failed.@SafeVarargs public static void stop(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws StopException
Stoppable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when stoping the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).StopException - in case initialization of at least one
Stoppable instance failed.public static void destroy(Object aComponent)
Component in case it is
Destroyable.aComponent - The Component to destroy.public static void destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
Destroyable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when destroying
the Component instances.aComponents - The Collection containing the
Component instances to destroy (in case them implement the
Destroyable interface).public static void destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
Destroyable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when destroying
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).@SafeVarargs public static void destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents)
Destroyable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when destroying
the Component instances.aComponents - The Collection containing the
Component instances to destroy (in case them implement the
Destroyable interface).@SafeVarargs public static void destroy(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents)
Destroyable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when destroying
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).public static void decompose(Object aComponent)
Component in case it is
Decomposeable.aComponent - The Component to decompose.public static void decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
Decomposeable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to decompose (in case them implement
the Decomposeable interface).public static void decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
Decomposeable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).@SafeVarargs public static void decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents)
Decomposeable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to decompose (in case them implement
the Decomposeable interface).@SafeVarargs public static void decompose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents)
Decomposeable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).public static void dispose(Object aComponent)
Component in case it is
Disposable.Disposedable.aComponent - The Component to dispose.public static void dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
Disposable.Disposedable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to dispose (in case them implement the
Disposable.Disposedable interface).public static void dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
Disposable.Disposedable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).@SafeVarargs public static void dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents)
Disposable.Disposedable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to dispose (in case them implement the
Disposable.Disposedable interface).@SafeVarargs public static void dispose(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents)
Disposable.Disposedable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).public static void flush(Object aComponent) throws OpenException
aComponent - The Component to flush.OpenException - Thrown in case initialization failed.public static void flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws OpenException
Flushable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when flushing the
Component instances.aComponents - The Collection containing the
Component instances to flush (in case them implement the
Flushable interface).OpenException - in case initialization of at least one
Flushable instance failed.public static void flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws OpenException
Flushable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when flushing the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case initialization of at least one
Flushable instance failed.@SafeVarargs public static void flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws OpenException
Flushable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when flushing the
Component instances.aComponents - The Collection containing the
Component instances to flush (in case them implement the
Flushable interface).OpenException - in case initialization of at least one
Flushable instance failed.@SafeVarargs public static void flush(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws OpenException
Flushable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when flushing the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case initialization of at least one
Flushable instance failed.public static void reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
Resetable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to reset (in case them implement the
Resetable interface).public static void reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
Resetable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).@SafeVarargs public static void reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents)
Resetable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to reset (in case them implement the
Resetable interface).@SafeVarargs public static void reset(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents)
Resetable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).public static void open(Object aComponent) throws OpenException
aComponent - The Component to open.OpenException - Thrown in case initialization failed.public static void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
throws OpenException
Openable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when opening the
Component instances.aComponents - The Collection containing the
Component instances to open (in case them implement the
Openable interface).OpenException - in case initialization of at least one
Openable instance failed.public static void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
throws OpenException
Openable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when opening the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case initialization of at least one
Openable instance failed.@SafeVarargs public static void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents) throws OpenException
Openable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when opening the
Component instances.aComponents - The Collection containing the
Component instances to open (in case them implement the
Openable interface).OpenException - in case initialization of at least one
Openable instance failed.@SafeVarargs public static void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents) throws OpenException
Openable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when opening the
Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case initialization of at least one
Openable instance failed.public static <CON> void open(Object aComponent, CON aConnection) throws OpenException
Component in case it is
ConnectionOpenable.CON - the generic typeaComponent - The Component to configure.aConnection - the connectionOpenException - Thrown in case connecting failed.public static <CON> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
CON aConnection,
Collection<?> aComponents)
throws OpenException
ConnectionOpenable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.CON - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aConnection - the connectionaComponents - The Collection containing the
Component instances to connect (in case them implement the
ConnectionOpenable interface).OpenException - in case connecting of at least one
ConnectionOpenable instance failed.public static <CON> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
CON aConnection,
Collection<?> aComponents)
throws OpenException
ConnectionOpenable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.CON - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aConnection - the connectionaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case connecting of at least one
ConnectionOpenable instance failed.@SafeVarargs public static <CON> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, CON aConnection, Object... aComponents) throws OpenException
ConfigureException
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.CON - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aConnection - the connectionaComponents - The Collection containing the
Component instances to connect (in case them implement the
ConfigureException interface).OpenException - in case connecting of at least one
ConfigureException instance failed.@SafeVarargs public static <CON> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, CON aConnection, Object... aComponents) throws OpenException
ConfigureException
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.CON - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aConnection - the connectionaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case connecting of at least one
ConfigureException instance failed.public static <INPUT,OUTPUT> void open(Object aComponent, INPUT aInputConnection, OUTPUT aOutputConnection) throws OpenException
Component in case it is
BidirectionalConnectionOpenable.INPUT - the generic typeOUTPUT - the generic typeaComponent - The Component to configure.aInputConnection - the input connectionaOutputConnection - the output connectionOpenException - Thrown in case connecting failed.public static <INPUT,OUTPUT> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
INPUT aInputConnection,
OUTPUT aOutputConnection,
Collection<?> aComponents)
throws OpenException
BidirectionalConnectionOpenable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.INPUT - the generic typeOUTPUT - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aInputConnection - the input connectionaOutputConnection - the output connectionaComponents - The Collection containing the
Component instances to connect (in case them implement the
BidirectionalConnectionOpenable interface).OpenException - in case connecting of at least one
BidirectionalConnectionOpenable instance failed.public static <INPUT,OUTPUT> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
INPUT aInputConnection,
OUTPUT aOutputConnection,
Collection<?> aComponents)
throws OpenException
BidirectionalConnectionOpenable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.INPUT - the generic typeOUTPUT - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aInputConnection - the input connectionaOutputConnection - the output connectionaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case connecting of at least one
BidirectionalConnectionOpenable instance failed.@SafeVarargs public static <INPUT,OUTPUT> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, INPUT aInputConnection, OUTPUT aOutputConnection, Object... aComponents) throws OpenException
ConfigureException
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy.INPUT - the generic typeOUTPUT - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aInputConnection - the input connectionaOutputConnection - the output connectionaComponents - The Collection containing the
Component instances to connect (in case them implement the
ConfigureException interface).OpenException - in case connecting of at least one
ConfigureException instance failed.@SafeVarargs public static <INPUT,OUTPUT> void open(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, INPUT aInputConnection, OUTPUT aOutputConnection, Object... aComponents) throws OpenException
ConfigureException
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.INPUT - the generic typeOUTPUT - the generic typeaComponentExecutionStrategy - The strategy to use when connecting
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aInputConnection - the input connectionaOutputConnection - the output connectionaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).OpenException - in case connecting of at least one
ConfigureException instance failed.public static void close(Object aComponent) throws CloseException
aComponent - The Component to close.CloseException - Thrown in case closing or pre-closing (flushing)
fails.public static void close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
Collection<?> aComponents)
Closable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to close (in case them implement the
Closable interface).public static void close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
Collection<?> aComponents)
Closable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).@SafeVarargs public static void close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, Object... aComponents)
Closable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aComponents - The Collection containing the
Component instances to close (in case them implement the
Closable interface).@SafeVarargs public static void close(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, ExecutorService aExecutorService, Object... aComponents)
Closable Component
instances found in the provided Collection. The strategy with
which the Component instances are processed is defined with the
provided ExecutionStrategy. An ExecutorService can be
provided in case some EJB container is to use a managed
ExecutorService provided by an EJB server.aComponentExecutionStrategy - The strategy to use when decomposing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).public static <T> void execute(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
ExecutorService aExecutorService,
org.refcodes.component.ComponentUtility.CallableFactory<T> aCallableFactory,
Collection<?> aComponents,
Object... aArguments)
throws Exception
Initializable
Component instances found in the provided Collection. The
strategy with which the Component instances are processed is
defined with the provided ExecutionStrategy. An
ExecutorService can be provided in case some EJB container is to
use a managed ExecutorService provided by an EJB server.T - the generic typeaComponentExecutionStrategy - The strategy to use when initializing
the Component instances.aExecutorService - The ExecutorService to use when creating
threads, required in case an ExecutionStrategy.PARALLEL or
ExecutionStrategy.JOIN is used.aCallableFactory - the callable factoryaComponents - The Collection containing the
Component instances to process (in case them implement the
required interface).aArguments - An additional argument such as the connection CON or
the context CTX required in special cases.Exception - in case processing of at least one Component
instance failed.Copyright © 2018. All rights reserved.