wt.services.applicationcontext.implementation
Class WTServiceInfo

java.lang.Object
  extended bywt.services.applicationcontext.implementation.WTServiceInfo
All Implemented Interfaces:
Serializable

public class WTServiceInfo
extends Object
implements Serializable

Service information used to identify and manufacture requested services.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  String contextName
           
private  int priority
           
private  String requestorName
           
private static String RESOURCE
           
private  String selector
           
private  String serviceImplementationName
           
private  String serviceName
           
private  boolean singleton
           
static String SVC_SINGLETON
          

Supported API: false
private  String type
           
static String TYPE_RSC
          

Supported API: false
static String TYPE_SVC
          

Supported API: false
 
Constructor Summary
WTServiceInfo(String contextName, String requestorName, String serviceName, int priority, boolean singleton, String serviceImplementationName, String selector)
          Example: new WTServiceInfo( "default", "wt.doc.Document", "wt.doc.DocumentService", 0, false, "wt.doc.StandardDocumentService"

Supported API: false
WTServiceInfo(String type, String contextName, String requestorName, String serviceName, int priority, boolean singleton, String serviceImplementationName, String selector)
          

Supported API: false
 
Method Summary
 boolean equals(Object other)
          

Supported API: false
 String getContextName()
          Gets the value of the attribute: contextName; Name of the context to which this service entry applies.
 int getPriority()
          Gets the value of the attribute: priority; It is possible that a request for a service which includes the service-name, requestor, and selector may be ambiguous.
 String getRequestorName()
          Gets the value of the attribute: requestorName; The name of the requestor to which this service information entry applies.
 String getSelector()
          Gets the value of the attribute: selector.
 String getServiceImplementationName()
          Gets the value of the attribute: serviceImplementationName; The name of the service implementation to be used for this entry.
 String getServiceName()
          Gets the value of the attribute: serviceName; The logical service name.
 String getType()
          Gets the value of the attribute: type.
 boolean isSingleton()
          Gets the value of the attribute: singleton; Indicates that only one instance of the object should be manufactured.
protected  void setContextName(String a_ContextName)
          Sets the value of the attribute: contextName; Name of the context to which this service entry applies.
protected  void setPriority(int a_Priority)
          Sets the value of the attribute: priority; It is possible that a request for a service which includes the service-name, requestor, and selector may be ambiguous.
protected  void setRequestorName(String a_RequestorName)
          Sets the value of the attribute: requestorName; The name of the requestor to which this service information entry applies.
protected  void setSelector(String a_Selector)
          Sets the value of the attribute: selector.
protected  void setServiceImplementationName(String a_ServiceImplementationName)
          Sets the value of the attribute: serviceImplementationName; The name of the service implementation to be used for this entry.
protected  void setServiceName(String a_ServiceName)
          Sets the value of the attribute: serviceName; The logical service name.
protected  void setSingleton(boolean a_Singleton)
          Sets the value of the attribute: singleton; Indicates that only one instance of the object should be manufactured.
protected  void setType(String a_Type)
          Sets the value of the attribute: type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

type

private String type

contextName

private String contextName

requestorName

private String requestorName

serviceName

private String serviceName

priority

private int priority

serviceImplementationName

private String serviceImplementationName

singleton

private boolean singleton

selector

private String selector

TYPE_SVC

public static final String TYPE_SVC


Supported API: false

See Also:
Constant Field Values

TYPE_RSC

public static final String TYPE_RSC


Supported API: false

See Also:
Constant Field Values

SVC_SINGLETON

public static final String SVC_SINGLETON


Supported API: false

See Also:
Constant Field Values
Constructor Detail

WTServiceInfo

public WTServiceInfo(String contextName,
                     String requestorName,
                     String serviceName,
                     int priority,
                     boolean singleton,
                     String serviceImplementationName,
                     String selector)
Example: new WTServiceInfo( "default", "wt.doc.Document", "wt.doc.DocumentService", 0, false, "wt.doc.StandardDocumentService"

Supported API: false

Parameters:
contextName - The name of the context in which this service applies.
requestorName - The name of the class of the service requestor (target).
serviceName - The class name of the logical service.
priority - The order in which entries for the same logical service should be searched. Larger numbers are searched first.
singleton - Indicates whether a singleton should be returned for a getService operation. If false a new copy of the service is generated on each call.
serviceImplementationName - The class name of the service implementation.
selector -

WTServiceInfo

public WTServiceInfo(String type,
                     String contextName,
                     String requestorName,
                     String serviceName,
                     int priority,
                     boolean singleton,
                     String serviceImplementationName,
                     String selector)


Supported API: false

Parameters:
type -
contextName -
requestorName -
serviceName -
priority -
singleton -
serviceImplementationName -
selector -
Method Detail

getType

public String getType()
Gets the value of the attribute: type.

Supported API: false

Returns:
String

setType

protected void setType(String a_Type)
Sets the value of the attribute: type.

Supported API: false

Parameters:
a_Type -

getContextName

public String getContextName()
Gets the value of the attribute: contextName; Name of the context to which this service entry applies.

Supported API: false

Returns:
String

setContextName

protected void setContextName(String a_ContextName)
Sets the value of the attribute: contextName; Name of the context to which this service entry applies.

Supported API: false

Parameters:
a_ContextName -

getRequestorName

public String getRequestorName()
Gets the value of the attribute: requestorName; The name of the requestor to which this service information entry applies.

Supported API: false

Returns:
String

setRequestorName

protected void setRequestorName(String a_RequestorName)
Sets the value of the attribute: requestorName; The name of the requestor to which this service information entry applies.

Supported API: false

Parameters:
a_RequestorName -

getServiceName

public String getServiceName()
Gets the value of the attribute: serviceName; The logical service name.

Supported API: false

Returns:
String

setServiceName

protected void setServiceName(String a_ServiceName)
Sets the value of the attribute: serviceName; The logical service name.

Supported API: false

Parameters:
a_ServiceName -

getPriority

public int getPriority()
Gets the value of the attribute: priority; It is possible that a request for a service which includes the service-name, requestor, and selector may be ambiguous. This could happen when an object implements two unrelated interfaces and there is a service entry for each interface. The priority number is used when such ambiguities arise. Note that it is debateable as to whether such situations should be allowed to happen. When one service is chosen over another, this may be a symptom of a design flaw which could lead to problem.

Supported API: false

Returns:
int

setPriority

protected void setPriority(int a_Priority)
Sets the value of the attribute: priority; It is possible that a request for a service which includes the service-name, requestor, and selector may be ambiguous. This could happen when an object implements two unrelated interfaces and there is a service entry for each interface. The priority number is used when such ambiguities arise. Note that it is debateable as to whether such situations should be allowed to happen. When one service is chosen over another, this may be a symptom of a design flaw which could lead to problem.

Supported API: false

Parameters:
a_Priority -

getServiceImplementationName

public String getServiceImplementationName()
Gets the value of the attribute: serviceImplementationName; The name of the service implementation to be used for this entry.

Supported API: false

Returns:
String

setServiceImplementationName

protected void setServiceImplementationName(String a_ServiceImplementationName)
Sets the value of the attribute: serviceImplementationName; The name of the service implementation to be used for this entry.

Supported API: false

Parameters:
a_ServiceImplementationName -

isSingleton

public boolean isSingleton()
Gets the value of the attribute: singleton; Indicates that only one instance of the object should be manufactured.

Supported API: false

Returns:
boolean

setSingleton

protected void setSingleton(boolean a_Singleton)
Sets the value of the attribute: singleton; Indicates that only one instance of the object should be manufactured.

Supported API: false

Parameters:
a_Singleton -

getSelector

public String getSelector()
Gets the value of the attribute: selector.

Supported API: false

Returns:
String

setSelector

protected void setSelector(String a_Selector)
Sets the value of the attribute: selector.

Supported API: false

Parameters:
a_Selector -

equals

public boolean equals(Object other)


Supported API: false

Parameters:
other - The other object to compare for equality. Value based equality is used for WTServiceInfo objects.
Returns:
boolean