public interface StateAdvisoryFactory
Title: Open Service Framework
Description: The Advisory Factory
interface presents a set of functions required for implementing
a user-defined state notification capability.
Advisory Factories provide a way for a component to raise critical run-time Advisory Events
. Developers
implement the interface to create their own advisory factories responsible for constructing the necessary datagrams.
A factory is registered and instantiated by the Component's Context
. At runtime the factory is
responsible for creating datagram instances of specific advisories allowing the user to raise any advisories that
have been previously registered. If an advisory has not been registered with the component but has been created
by some other means, such as direct access to the advisory datagram factory, attempting to publish such an advisory
will result in an exception being thrown.
Copyright: Copyright (c) 2008
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
StateAdvisory |
createAdvisory(java.lang.String advisoryName)
Creates an instance of an
Advisory datagram based on the name. |
java.util.List |
listAdvisoryNames()
Lists the names of the advisories supported by this component.
|
StateAdvisory createAdvisory(java.lang.String advisoryName) throws AdvisoriesFactoryException
Advisory
datagram based on the name.
The user may employ a standard raiseAdvisory()
method to produce the
advisory. This method will construct the correct type of advisory by obtaining the
Prototype
of a given advisory and using it to construct an instance of
an advisory datagram. In case of user-defined State Advisories
their
definitions are used to create the datagram instead.advisoryName
- StringAdvisoriesFactoryException
java.util.List listAdvisoryNames()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.