|
Openwings API Documentation (v1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.openwings.component.EventServiceParameters
This class defines an object which can be passed to the
publishService()/subscribeService()
methods of the ComponentComplex interface to
interface to specify configuration information
and behavior relevant to using asynchronous (event or messaging)
services (topics). This includes:
EventServicePolicy
to make it configurable at deployment time.
EventServicePolicy,
Serialized Form| Constructor Summary | |
EventServiceParameters()
Default constructor |
|
EventServiceParameters(UniqueID componentID,
UniqueID serviceID,
boolean returnServiceAttributes,
boolean returnUserInterfaceFactories,
java.lang.Class desiredUIClass,
java.lang.Object[] desiredUIConstructorParameters,
boolean buildUIImmediately,
Attribute[] requiredAttributes)
General constructor |
|
| Method Summary | |
void |
addRequiredAttribute(Attribute attribute)
This convenience method adds a service attribute |
boolean |
getBuildUIImmediately()
This method returns a flag that indicates whether the user interface for a used service should built immediately upon locating the service. |
UniqueID |
getComponentID()
This method returns the unique identifier for a component. |
java.lang.Class |
getDesiredUIClass()
This method returns the desired type of user interface for a service, based on the class of the UI object. |
java.lang.Object[] |
getDesiredUIConstructorParameters()
This method returns parameters that a UI factory will pass to the constructor of a UI object. |
Attribute |
getRequiredAttribute(Attribute attribute)
This convenience method retrieves a service attribute |
Attribute |
getRequiredAttribute(java.lang.String attributeName)
This convenience method retrieves a service attribute by name |
Attribute[] |
getRequiredAttributes()
This method returns required attributes for service |
boolean |
getReturnServiceAttributes()
This method returns a flag that indicates whether the attributes of a used service should be returned in the serviceAttributes field of a ServiceResult
(or ServiceResult). |
boolean |
getReturnUserInterfaceFactories()
This method returns a flag that indicates whether the user interface factories attached to a used service should be returned in the userInterfaceFactories field of a ServiceResult. |
UniqueID |
getServiceID()
This method returns the unique identifier for a service. |
Attribute |
removeRequiredAttribute(Attribute attribute)
This convenience method removes a service attribute return the attribute, or null if the attribute is
not in the list |
Attribute |
removeRequiredAttribute(java.lang.String attributeName)
This convenience method removes a service attribute by name return the attribute, or null if the attribute is
not in the list |
void |
setBuildUIImmediately(boolean buildUIImmediately)
This method sets a flag that indicates whether the user interface for a used service should built immediately upon locating the service. |
void |
setComponentID(UniqueID componentID)
This method sets the unique identifier for a component. |
void |
setDesiredUIClass(java.lang.Class desiredUIClass)
This method sets the desired type of user interface for a service, based on the class of the UI object. |
void |
setDesiredUIConstructorParameters(java.lang.Object[] desiredUIConstructorParameters)
This method sets parameters that are to be passed to the constructor of a UI object by a UI factory. |
void |
setRequiredAttributes(Attribute[] requiredAttributes)
This method sets required attributes for a service |
void |
setReturnServiceAttributes(boolean returnServiceAttributes)
This method sets a flag that indicates whether the attributes of a used service should be returned in the serviceAttributes field of a ServiceResult
(or ServiceResult). |
void |
setReturnUserInterfaceFactories(boolean returnUserInterfaceFactories)
This method sets a flag that indicates whether the user interface factories attached to a used service should be returned in the userInterfaceFactories field of a ServiceResult. |
void |
setServiceID(UniqueID serviceID)
This method sets the unique identifier for a desired service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventServiceParameters()
public EventServiceParameters(UniqueID componentID,
UniqueID serviceID,
boolean returnServiceAttributes,
boolean returnUserInterfaceFactories,
java.lang.Class desiredUIClass,
java.lang.Object[] desiredUIConstructorParameters,
boolean buildUIImmediately,
Attribute[] requiredAttributes)
| Method Detail |
public void setComponentID(UniqueID componentID)
componentID - unique identifer for a componentpublic UniqueID getComponentID()
public void setServiceID(UniqueID serviceID)
public UniqueID getServiceID()
public void setReturnServiceAttributes(boolean returnServiceAttributes)
serviceAttributes field of a ServiceResult
(or ServiceResult).
returnServiceAttributes - flagpublic boolean getReturnServiceAttributes()
serviceAttributes field of a ServiceResult
(or ServiceResult).
public void setReturnUserInterfaceFactories(boolean returnUserInterfaceFactories)
userInterfaceFactories field of a ServiceResult.
returnUserInterfaceFactories - flagpublic boolean getReturnUserInterfaceFactories()
userInterfaceFactories field of a ServiceResult.
public void setDesiredUIClass(java.lang.Class desiredUIClass)
desiredUIClass - the UI object returned in
ServiceResult will be an instance of this classpublic java.lang.Class getDesiredUIClass()
ServiceResult will be an instance of this classpublic void setDesiredUIConstructorParameters(java.lang.Object[] desiredUIConstructorParameters)
desiredUIConstructorParameters - required parameters
for a constructor of the desiredUIClasspublic java.lang.Object[] getDesiredUIConstructorParameters()
desiredUIClasspublic void setBuildUIImmediately(boolean buildUIImmediately)
desiredUIClass
attribute is set
buildUIImmediately - flagContainerpublic boolean getBuildUIImmediately()
Containerpublic void setRequiredAttributes(Attribute[] requiredAttributes)
Attributepublic Attribute[] getRequiredAttributes()
Attributepublic void addRequiredAttribute(Attribute attribute)
public Attribute removeRequiredAttribute(Attribute attribute)
null if the attribute is
not in the list
public Attribute removeRequiredAttribute(java.lang.String attributeName)
null if the attribute is
not in the list
public Attribute getRequiredAttribute(Attribute attribute)
public Attribute getRequiredAttribute(java.lang.String attributeName)
|
Openwings API Documentation (v1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||