|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.openwings.component.ProvideServiceParameters
This class defines an object which can be passed to the
provideService() method of the
ComponentComplex interface to specify
configuration information and behavior relevant to providing
services. This includes:
ProvideServicePolicy
to make it configurable at deployment time.
ProvideServicePolicy,
Serialized Form| Constructor Summary | |
ProvideServiceParameters()
default constructor |
|
ProvideServiceParameters(java.lang.String serviceName,
java.lang.String serialNumber,
java.lang.String comment,
java.lang.String displayName,
java.lang.String iconResource,
java.lang.String serviceDescription,
UniqueID serviceID,
UserInterfaceFactory[] factories,
Attribute[] serviceAttributes)
general constructor |
|
| Method Summary | |
void |
addServiceAttribute(Attribute attribute)
This convenience method adds a service attribute |
void |
addUserInterfaceFactory(UserInterfaceFactory factory)
This convenience method adds a factory |
java.lang.String |
getComment()
This method returns a note that describes some aspect of the service |
java.lang.String |
getDisplayName()
This method returns a name for the service which is intended for users to read, perhaps in a service browser or web browser |
java.lang.String |
getIconResource()
This method returns the name of a resource that is an icon that can be used to depict this service. |
java.lang.String |
getSerialNumber()
This method returns the serial number of the service |
Attribute |
getServiceAttribute(Attribute attribute)
This convenience method retrieves a service attribute |
Attribute |
getServiceAttribute(java.lang.String attributeName)
This convenience method retrieves a service attribute by name |
Attribute[] |
getServiceAttributes()
This method returns attributes that describe a service |
java.lang.String |
getServiceDescription()
This method returns a longer textual description of the service |
UniqueID |
getServiceID()
This method returns the unique identifier that should be used to identify the service when it is provided |
java.lang.String |
getServiceName()
This method returns the name that will be used to describe the service |
UserInterfaceFactory[] |
getUserInterfaceFactories()
This method returns the array of UserInterfaceFactory
objects that will be provided along with the service |
Attribute |
removeServiceAttribute(Attribute attribute)
This convenience method removes a service attribute return the attribute, or null if the attribute is
not in the list |
Attribute |
removeServiceAttribute(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 |
boolean |
removeUserInterfaceFactory(UserInterfaceFactory factory)
This convenience method removes a user interface factory return true if the factory was removed from the set |
void |
setComment(java.lang.String comment)
This method sets a note that describes some aspect of the service |
void |
setDisplayName(java.lang.String displayName)
This method sets a name for the service which is intended for users to read, perhaps in a service browser or web browser |
void |
setIconResource(java.lang.String iconResource)
This method sets the the name of a resource that is an icon that can be used to depict this service. |
void |
setSerialNumber(java.lang.String serialNumber)
This method sets the serial number of the service |
void |
setServiceAttributes(Attribute[] serviceAttributes)
This method sets attributes describing a service |
void |
setServiceDescription(java.lang.String serviceDescription)
This method sets a longer textual description of the service |
void |
setServiceID(UniqueID serviceID)
This method sets the unique identifier that should be used to identify the service when it is provided |
void |
setServiceName(java.lang.String serviceName)
This method sets a name that will be used to describe the service |
void |
setUserInterfaceFactories(UserInterfaceFactory[] factories)
This method sets the array of UserInterfaceFactory
objects that will be provided along with the service |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProvideServiceParameters()
public ProvideServiceParameters(java.lang.String serviceName,
java.lang.String serialNumber,
java.lang.String comment,
java.lang.String displayName,
java.lang.String iconResource,
java.lang.String serviceDescription,
UniqueID serviceID,
UserInterfaceFactory[] factories,
Attribute[] serviceAttributes)
| Method Detail |
public void setServiceName(java.lang.String serviceName)
serviceName - name of the servicepublic java.lang.String getServiceName()
public void setSerialNumber(java.lang.String serialNumber)
serialNumber - serial numberpublic java.lang.String getSerialNumber()
public void setComment(java.lang.String comment)
comment - aspect of the servicepublic java.lang.String getComment()
public void setDisplayName(java.lang.String displayName)
displayName - displayable namepublic java.lang.String getDisplayName()
public void setIconResource(java.lang.String iconResource)
ClassLoader.
iconResource - name of the resourcepublic java.lang.String getIconResource()
public void setServiceDescription(java.lang.String serviceDescription)
serviceDescription - description of the servicepublic java.lang.String getServiceDescription()
public void setServiceID(UniqueID serviceID)
serviceID - unique identifierpublic UniqueID getServiceID()
public void setUserInterfaceFactories(UserInterfaceFactory[] factories)
UserInterfaceFactory
objects that will be provided along with the service
factories - array of user interface factories. These factories
implement UserInterfaceFactory and conform to the user
interface factory patternpublic UserInterfaceFactory[] getUserInterfaceFactories()
UserInterfaceFactory
objects that will be provided along with the service
public void addUserInterfaceFactory(UserInterfaceFactory factory)
public boolean removeUserInterfaceFactory(UserInterfaceFactory factory)
true if the factory was removed from the set
public void setServiceAttributes(Attribute[] serviceAttributes)
serviceAttributes - array of attributesAttributepublic Attribute[] getServiceAttributes()
Attributepublic void addServiceAttribute(Attribute attribute)
public Attribute removeServiceAttribute(Attribute attribute)
null if the attribute is
not in the list
public Attribute removeServiceAttribute(java.lang.String attributeName)
null if the attribute is
not in the list
public Attribute getServiceAttribute(Attribute attribute)
public Attribute getServiceAttribute(java.lang.String attributeName)
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||