|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.clientserver.SecurityServiceGetter
public class SecurityServiceGetter
This class is used by the toolkit to get an implentation of the
SecurityServiceInterface.
The object returned is an instance of the service specified inside the
btt.xml into the tag initialization.accessControlServiceName. To
create the instance, the Service.readObject method is called with the value
retrieved from the btt.xml file. This class is a singleton, therefore to get
an instance the getUnuqueInstance method must be used.
The application could either change or set the value of the serviceId to be used by invoking the setServiceId method before invoking the getAclService.
Field Summary | |
---|---|
protected static java.lang.String |
COMPNM
class' name. |
protected static java.lang.String |
DEF_SERVICE_ID
default service ID |
protected static java.lang.String |
EX_MSG
message for the exception |
protected static java.lang.String |
INI_TAG
tag where is the service ID |
protected java.lang.String |
refServiceId
the serviceId name |
protected java.lang.Object |
sem
semaphore used to synchronized the creation of the service |
protected java.lang.Object |
service
the ACL service instance |
Constructor Summary | |
---|---|
protected |
SecurityServiceGetter()
This constructor creates a SecurityServiceGetter object. |
Method Summary | |
---|---|
protected java.lang.String |
getIniValue()
Returns the serviceId of the Security service to be instantiated from the btt.xml file. |
java.lang.Object |
getService()
Returns the instance of the Security service. |
java.lang.String |
getServiceId()
Returns the value of the attribute refServiceId. |
static SecurityServiceGetter |
getUniqueInstance()
Returns the instance to be used to get the instance of the SecurityServiceInterface. |
protected void |
initializeAclInstance()
Initializes the instance of the service specified inside the btt.xml file. |
static void |
reset()
Resets the instance. |
void |
setService(java.lang.Object srv)
Sets the value of the attribute acl. |
void |
setServiceId(java.lang.String aName)
Sets the value of the attribute refServiceId. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String COMPNM
uses to identify the component that launches the exception *
protected static final java.lang.String EX_MSG
protected static final java.lang.String INI_TAG
protected static final java.lang.String DEF_SERVICE_ID
protected java.lang.Object service
protected java.lang.String refServiceId
protected final java.lang.Object sem
Constructor Detail |
---|
protected SecurityServiceGetter()
Method Detail |
---|
protected java.lang.String getIniValue()
Returns the value of the tag: initialization.accessControlServiceName.
If the tag doesn't exits the default value ACLService is
returned.
public java.lang.Object getService() throws DSEException
DSEException
public java.lang.String getServiceId()
public static SecurityServiceGetter getUniqueInstance() throws DSEException
A new instance of the class is created if doesn't exists one.
DSEException
protected void initializeAclInstance() throws DSEException
DSEException
public static void reset()
public void setService(java.lang.Object srv)
srv
- java.lang.Objectpublic void setServiceId(java.lang.String aName)
aName
- java.lang.String
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |