Methods Summary |
---|
public void | addAdminObject(AdminObject admin)set admin object
this.adminObjects.add(admin);
this.setDirty();
this.changed();
|
public boolean | addAuthMechanism(AuthMechanism mech)
throw new UnsupportedOperationException();
|
public boolean | addAuthMechanism(int mech)
throw new UnsupportedOperationException();
|
public void | addConfigProperty(EnvironmentProperty configProperty)add a configProperty to the set
this.configProperties.add(configProperty);
this.setDirty();
this.changed();
|
public void | addSecurityPermission(SecurityPermission permission)Add a SecurityPermission object to the set
this.securityPermissions.add(permission);
this.setDirty();
this.changed();
|
private java.lang.StringBuffer | appendConfigProperties(java.util.Set props, java.lang.StringBuffer buf)
buf.append("\n------------");
for (Iterator i = props.iterator(); i.hasNext();)
{
EnvironmentProperty config = (EnvironmentProperty) i.next();
buf.append("[Name : " + config.getName() + "], ");
buf.append("[Value: " + config.getValue() + "], ");
buf.append("[Type : " + config.getType() + "]");
}
buf.append("\n------------");
return buf;
|
void | doneOpening()
this.isDirty = false;
this.changed();
|
void | doneSaving()
this.isDirty = false;
this.changed();
|
public AdminObject | getAdminObjectByType(java.lang.String type)
Iterator i = getAdminObjects().iterator();
while (i.hasNext())
{
AdminObject ao = (AdminObject) i.next();
if (type.equals(ao.getAdminObjectInterface()))
return ao;
}
return null;
|
public java.util.Set | getAdminObjects()
return this.adminObjects;
|
public java.util.Set | getAuthMechanisms()
throw new UnsupportedOperationException();
|
public java.util.Set | getConfigProperties()Set of EnvironmentProperty
return configProperties;
|
public ConnectionDefDescriptor | getConnectionDefinitionByCFType(java.lang.String type)
return getConnectionDefinitionByCFType(type, true);
|
public ConnectionDefDescriptor | getConnectionDefinitionByCFType(java.lang.String type, boolean useDefault)
Iterator it = this.outboundRA.getConnectionDefs().iterator();
while (it.hasNext())
{
ConnectionDefDescriptor desc = (ConnectionDefDescriptor) it.next();
if (type == null)
{
if (useDefault
&& this.outboundRA.getConnectionDefs().size() == 1)
return desc;
else
return null;
}
if (desc.getConnectionFactoryIntf().equals(type))
return desc;
}
return null;
|
public java.lang.String | getConnectionFactoryImpl()
throw new UnsupportedOperationException();
|
public java.lang.String | getConnectionFactoryInterface()
throw new UnsupportedOperationException();
|
public java.lang.String | getConnectionImpl()
throw new UnsupportedOperationException();
|
public java.lang.String | getConnectionInterface()
throw new UnsupportedOperationException();
|
public java.lang.String | getConnectorDescription()get the connector description
return connectorDescription;
|
public java.lang.String | getDefaultSpecVersion()
return ConnectorNode.SPEC_VERSION;
|
public java.lang.String | getDeployName()return name used for deployment
return getModuleDescriptor().getArchiveUri();
|
public java.lang.String | getEisType()get eisType
return eisType;
|
public boolean | getInBoundDefined()
return inboundRA != null;
|
public InboundResourceAdapter | getInboundResourceAdapter()
return this.inboundRA;
|
public LicenseDescriptor | getLicenseDescriptor()
return licenseDescriptor;
|
public java.lang.String | getManagedConnectionFactoryImpl()
throw new UnsupportedOperationException();
|
public javax.enterprise.deploy.shared.ModuleType | getModuleType()
return ModuleType.RAR;
|
public int | getNumOfSupportedCFs()
return outboundRA.getConnectionDefs().size();
|
public boolean | getOutBoundDefined()
return outboundRA != null;
|
public OutboundResourceAdapter | getOutboundResourceAdapter()
return this.outboundRA;
|
public java.lang.String | getReauthenticationSupport()
throw new UnsupportedOperationException();
|
public java.lang.String | getResourceAdapterClass()
return resourceAdapterClass;
|
public java.lang.String | getResourceAdapterVersion()get value for resourceadapter version (1.5 schema
return resourceAdapterVersion;
|
public java.util.Set | getSecurityPermissions()Set of SecurityPermission objects
if (securityPermissions == null) {
securityPermissions = new OrderedSet();
}
return securityPermissions;
|
public java.util.Set | getServiceReferenceDescriptors()
return new OrderedSet();
|
public com.sun.enterprise.deployment.runtime.connector.SunConnector | getSunDescriptor()This returns the extra ejb sun specific info not in the RI DID.
return sunConnector;
|
public MessageListener | getSupportedMessageListener(java.lang.String type)
if (this.inboundRA == null) {
return null;
}
Iterator i = this.inboundRA.getMessageListeners().iterator();
while (i.hasNext()) {
MessageListener l = (MessageListener) i.next();
if ((l.getMessageListenerType()).equals(type)) {
return l;
}
}
return null;
|
public java.lang.String | getTransSupport()
throw new UnsupportedOperationException();
|
public int | getTransactionSupport()
throw new UnsupportedOperationException();
|
public java.lang.String | getVendorName()get value for vendorName
return vendorName;
|
public java.lang.String | getVersion()get value for version
//return version;
throw new UnsupportedOperationException();
|
public boolean | hasAdminObjects()
return adminObjects.size() > 0;
|
public boolean | isDirty()A flag to indicate that my data has changed since the last save.
return this.isDirty;
|
public boolean | isMessageListenerSupported(java.lang.String type)
throw new UnsupportedOperationException();
|
public void | print(java.lang.StringBuffer toStringBuffer)A formatted string representing my state.
StringBuffer buf = toStringBuffer;
super.print(buf);
buf.append("\n displayName : " + super.getName());
buf.append("\n connector_description : " + connectorDescription);
buf.append("\n smallIcon : " + super.getSmallIconUri());
buf.append("\n largeIcon : " + super.getLargeIconUri());
buf.append("\n vendorName : " + vendorName);
buf.append("\n eisType : " + eisType);
//buf.append("\n version : " + version);
buf.append("\n resourceadapter version : " + resourceAdapterVersion);
//license info
if (getLicenseDescriptor() != null) {
buf.append("\n license_description : " + getLicenseDescriptor().getDescription());
buf.append("\n licenseRequired : " + getLicenseDescriptor().getLicenseRequiredValue());
}
buf.append("\n resourceAdapterClass : " + resourceAdapterClass);
buf.append("\n resourceAdapterClass [" + resourceAdapterClass
+ "] config properties :");
appendConfigProperties(this.configProperties, buf);
if (this.outboundRA == null)
buf.append("\n Outbound Resource Adapter NOT available");
else
{
buf.append("\n Outbound Resource Adapter Info : ");
buf.append("\n connection-definitions: ");
for (Iterator i = this.outboundRA.getConnectionDefs().iterator();
i.hasNext();)
{
buf.append("\n------------\n");
ConnectionDefDescriptor conDef =
(ConnectionDefDescriptor) i.next();
buf.append("MCF : "
+ conDef.getManagedConnectionFactoryImpl() + ", ");
buf.append("\n MCF [" +
conDef.getManagedConnectionFactoryImpl()
+ "] config properties :");
appendConfigProperties(conDef.getConfigProperties(), buf);
buf.append("[CF Interface : "
+ conDef.getConnectionFactoryIntf() + "], ");
buf.append("[CF Class : "
+ conDef.getConnectionFactoryImpl() + "], ");
buf.append("[Connection Interface : "
+ conDef.getConnectionIntf() + "], ");
buf.append("[Connection Class : "
+ conDef.getConnectionImpl() + "] ");
buf.append("\n------------\n");
}
buf.append("\n transaction-support : "
+ this.outboundRA.getTransSupport());
buf.append("\n authentication-mechanism: ");
for (Iterator i = this.outboundRA.getAuthMechanisms().iterator();
i.hasNext();)
{
AuthMechanism conf = (AuthMechanism) i.next();
buf.append("\n------------\n");
buf.append("[Type : " + conf.getAuthMechType() + "], ");
buf.append("[Interface : "
+ conf.getCredentialInterface() + "]");
buf.append("\n------------" );
}
buf.append("\n reauthenticate-support : "
+ this.outboundRA.getReauthenticationSupport());
buf.append("\n security-permission : ");
for (Iterator i =
getSecurityPermissions().iterator();
i.hasNext();)
{
SecurityPermission conf = (SecurityPermission) i.next();
buf.append("\n------------\n");
buf.append("[persmission : " + conf.getPermission() + "], ");
buf.append("[discription : " + conf.getDescription() + "]");
buf.append("\n------------" );
}
} //outbound resourceadapter
if (this.inboundRA == null)
buf.append("\n Inbound Resource Adapter NOT available");
else
{
buf.append("\n Inbound Resource Adapter Info : ");
buf.append("\n Message Listeners Info : ");
for (Iterator i = this.inboundRA.getMessageListeners().iterator();
i.hasNext();)
{
buf.append("\n------------\n");
MessageListener l = (MessageListener) i.next();
buf.append("[Type : " + l.getMessageListenerType() + "], ");
buf.append("[AS Class : " + l.getActivationSpecClass() + "]");
buf.append("\n------------ ");
}
} //inbound resourceadapter
if (this.adminObjects.size() == 0)
buf.append("\n Admin Objects NOT available");
else
{
buf.append("\n Admin Objects Info : ");
for (Iterator i = this.adminObjects.iterator(); i.hasNext();)
{
buf.append("\n------------\n");
AdminObject a = (AdminObject) i.next();
buf.append("[Type : " + a.getAdminObjectInterface() + "], ");
buf.append("[Class : " + a.getAdminObjectClass() + "]");
appendConfigProperties(a.getConfigProperties(), buf);
buf.append("\n------------ ");
}
} //admin objects
|
private static void | printEntry(java.util.zip.ZipEntry e)
DOLUtils.getDefaultLogger().log(Level.FINE, e.getName());
|
public void | removeAdminObject(AdminObject admin)
this.adminObjects.remove(admin);
this.setDirty();
this.changed();
|
public boolean | removeAuthMechanism(AuthMechanism mech)
throw new UnsupportedOperationException();
|
public boolean | removeAuthMechanism(int mech)
throw new UnsupportedOperationException();
|
public void | removeConfigProperty(EnvironmentProperty configProperty)remove a configProperty from the set
this.configProperties.remove(configProperty);
this.setDirty();
this.changed();
|
public void | removeSecurityPermission(SecurityPermission permission)Remove a SecurityPermission object to the set
this.securityPermissions.remove(permission);
this.setDirty();
this.changed();
|
public void | setConnectionFactoryImpl(java.lang.String connectionFactoryImpl)
throw new UnsupportedOperationException();
|
public void | setConnectionFactoryInterface(java.lang.String connectionFactoryInterface)
throw new UnsupportedOperationException();
|
public void | setConnectionImpl(java.lang.String connectionImpl)
throw new UnsupportedOperationException();
|
public void | setConnectionInterface(java.lang.String connectionInterface)
throw new UnsupportedOperationException();
|
public void | setConnectorDescription(java.lang.String description)set the connector description
this.connectorDescription = description;
this.setDirty();
this.changed();
|
public void | setDescription(java.lang.String description)override 'setDescription' to set 'dirty' flag
this.setDirty();
super.setDescription(description);
|
private void | setDirty()
this.isDirty = true;
|
public void | setEisType(java.lang.String eisType)set eisType
this.eisType = eisType;
this.setDirty();
this.changed();
|
public void | setInboundResourceAdapter(InboundResourceAdapter inboundRA)
this.inboundRA = inboundRA;
|
public void | setLargeIconUri(java.lang.String largeIconUri)override 'setLargeIconUri' to set 'dirty' flag
this.setDirty();
super.setLargeIconUri(largeIconUri);
|
public void | setLicenseDescriptor(LicenseDescriptor licenseDescriptor)
this.licenseDescriptor = licenseDescriptor;
this.setDirty();
this.changed();
|
public void | setManagedConnectionFactoryImpl(java.lang.String managedConnectionFactoryImpl)
throw new UnsupportedOperationException();
|
public void | setName(java.lang.String name)override 'setName' to set 'dirty' flag
if (!this.getName().equals(name)) {
this.setDirty();
super.setName(name);
}
|
public void | setOutboundResourceAdapter(OutboundResourceAdapter outboundRA)
this.outboundRA = outboundRA;
|
public void | setReauthenticationSupport(boolean reauthenticationSupport)
throw new UnsupportedOperationException();
|
public void | setReauthenticationSupport(java.lang.String reauthSupport)
throw new UnsupportedOperationException();
|
public void | setResourceAdapterClass(java.lang.String raClass)
this.resourceAdapterClass = raClass;
this.setDirty();
this.changed();
|
public void | setResourceAdapterVersion(java.lang.String resourceAdapterVersion)set value for resourceadater version (1.5 schema)
this.resourceAdapterVersion = resourceAdapterVersion;
this.setDirty();
this.changed();
|
public void | setSmallIconUri(java.lang.String smallIconUri)override 'setSmallIconUri' to set 'dirty' flag
this.setDirty();
super.setSmallIconUri(smallIconUri);
|
public void | setSpecVersion(java.lang.String specVersion)set value for specVersion
super.setSpecVersion(specVersion);
this.setDirty();
this.changed();
|
public void | setSunDescriptor(com.sun.enterprise.deployment.runtime.connector.SunConnector connector)This sets the extra connector sun specific info not in the RI DID.
this.sunConnector = connector;
|
public void | setTransactionSupport(int transactionSupport)
throw new UnsupportedOperationException();
|
public void | setTransactionSupport(java.lang.String support)
throw new UnsupportedOperationException();
|
public void | setVendorName(java.lang.String vendorName)set value for vendorName
this.vendorName = vendorName;
this.setDirty();
this.changed();
|
public void | setVersion(java.lang.String version)set value for version
/*this.version = version;
this.setDirty();
this.changed();*/
throw new UnsupportedOperationException();
|
public boolean | supportsReauthentication()
throw new UnsupportedOperationException();
|
public void | visit(com.sun.enterprise.deployment.util.DescriptorVisitor aVisitor)visit the descriptor and all sub descriptors with a DOL visitor implementation
if (aVisitor instanceof ConnectorVisitor) {
visit((ConnectorVisitor) aVisitor);
} else {
super.visit(aVisitor);
}
|
public void | visit(com.sun.enterprise.deployment.util.ConnectorVisitor aVisitor)visit the descriptor and all sub descriptors with a
DOL visitor implementation
aVisitor.accept(this);
|