Fields Summary |
---|
private static final long | serialVersionUID |
private String | versionThe version |
private String | vendorNameThe vendor name |
private String | eisTypeThe eis type |
private String | raVersionThe resource adapter version |
private String | raClassThe resource adapter class |
private boolean | reauthenticationSupportReauthentication support |
private LicenseMetaData | lmdThe license |
private EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap | descriptionsThe descriptions |
private HashSet | connectionDefinitionsThe connection definitions |
private TransactionSupportMetaData | tsmdThe transaction support meta data |
private AuthenticationMechanismMetaData | ammdThe authentication mechanism meta data |
private HashSet | listenersThe message listeners |
private HashSet | adminObjectsThe admin objects |
private HashSet | securityPermissionsThe security permissions |
Methods Summary |
---|
public void | addAdminObject(AdminObjectMetaData aomd)Add an administered object
adminObjects.add(aomd);
|
public void | addConnectionDefinition(ConnectionDefinitionMetaData cdmd)Add a connection definition
connectionDefinitions.add(cdmd);
|
public void | addDescription(DescriptionGroupMetaData dmd)Add a description
descriptions.put(dmd.getLanguage(), dmd);
|
public void | addMessageListener(MessageListenerMetaData mlmd)Add a message listener
listeners.add(mlmd);
|
public void | addSecurityPermission(SecurityPermissionMetaData spmd)Add a security permission
securityPermissions.add(spmd);
|
public AdminObjectMetaData | getAdminObject(java.lang.String interfaceName)Get the admin object
for (Iterator i = adminObjects.iterator(); i.hasNext();)
{
AdminObjectMetaData aomd = (AdminObjectMetaData) i.next();
if (aomd.getAdminObjectInterfaceClass().equals(interfaceName))
return aomd;
}
return null;
|
public AuthenticationMechanismMetaData | getAuthenticationMechanism()Get the authentication mechanism
return ammd;
|
public ConnectionDefinitionMetaData | getConnectionDefinition(java.lang.String connectionDefinition)Get the connection definition
for (Iterator i = connectionDefinitions.iterator(); i.hasNext();)
{
ConnectionDefinitionMetaData cdmd = (ConnectionDefinitionMetaData) i.next();
if (cdmd.getConnectionFactoryInterfaceClass().equals(connectionDefinition))
return cdmd;
}
return null;
|
public DescriptionGroupMetaData | getDescription()Get the description for the default language
DescriptionGroupMetaData dgmd = (DescriptionGroupMetaData) descriptions.get(Locale.getDefault().getLanguage());
// No description using the default locale, just use the first
if (dgmd == null)
{
for (Iterator i = descriptions.values().iterator(); i.hasNext();)
{
dgmd = (DescriptionGroupMetaData) i.next();
break;
}
}
return dgmd;
|
public DescriptionGroupMetaData | getDescription(java.lang.String lang)Get the description for the give language
return (DescriptionGroupMetaData) descriptions.get(lang);
|
public java.lang.String | getEISType()Get the eis type
return eisType;
|
public LicenseMetaData | getLicense()Get the license
return lmd;
|
public MessageListenerMetaData | getMessageListener(java.lang.String messagingType)Get the message listener
for (Iterator i = listeners.iterator(); i.hasNext();)
{
MessageListenerMetaData mlmd = (MessageListenerMetaData) i.next();
if (mlmd.getType().equals(messagingType))
return mlmd;
}
return null;
|
public java.lang.String | getRAClass()Get the resource adapter class
return raClass;
|
public java.lang.String | getRAVersion()Get the resource adapter version
return raVersion;
|
public boolean | getReauthenticationSupport()Get the reauthentication support
return reauthenticationSupport;
|
public TransactionSupportMetaData | getTransactionSupport()Get the transaction support
return tsmd;
|
public java.lang.String | getVendorName()Get the vendor name
return vendorName;
|
public java.lang.String | getVersion()Get the connector version
return version;
|
public void | setAuthenticationMechansim(AuthenticationMechanismMetaData ammd)Set the authentication mechansim
this.ammd = ammd;
|
public void | setEISType(java.lang.String eisType)Set the eis Type
this.eisType = eisType;
|
public void | setRAClass(java.lang.String raClass)Set the resource adapter class
this.raClass = raClass;
|
public void | setRAVersion(java.lang.String version)Set the resource adapter version
this.raVersion = version;
|
public void | setReauthenticationSupport(boolean reauthenticationSupport)Set the reauthentication support
this.reauthenticationSupport = reauthenticationSupport;
|
public void | setTransactionSupport(TransactionSupportMetaData tsmd)Set the transaction support
this.tsmd = tsmd;
|
public void | setVendorName(java.lang.String vendorName)Set the vendor name
this.vendorName = vendorName;
|
public void | setVersion(java.lang.String version)Set the connector version
this.version = version;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("ConnectorMetaData").append('@");
buffer.append(Integer.toHexString(System.identityHashCode(this)));
buffer.append("[version=").append(version);
buffer.append(" vendorName=").append(vendorName);
buffer.append(" eisType=").append(eisType);
buffer.append(" resourceAdapterVersion=").append(raVersion);
buffer.append(" resourceAdapterClass=").append(raClass);
buffer.append(" license=").append(lmd);
buffer.append(" properties=").append(getProperties());
buffer.append(" descriptions=").append(descriptions.values());
buffer.append(" connectionDefinitions=").append(connectionDefinitions);
buffer.append(" transactionSupport=").append(tsmd);
buffer.append(" authenticationMechanism=").append(ammd);
buffer.append(" reauthenticationSupport=").append(reauthenticationSupport);
buffer.append(" messageListeners=").append(listeners);
buffer.append(" adminobjects=").append(adminObjects);
buffer.append(" securityPermissions=").append(securityPermissions);
buffer.append(']");
return buffer.toString();
|