if (component == null) { throw new UnrecognizedResourceAdaptorException( resourceAdaptorID.toString()); } else { Set<String> entityNameSet = new HashSet<String>(); for (ResourceAdaptorEntity raEntity : resourceAdaptorEntities.values()) { if (raEntity.getResourceAdaptorID().equals(resourceAdaptorID)) { entityNameSet.add(raEntity.getName());
this.setValue(new ResourceAdaptorID(componentName,componentVendor,componentVersion));
/** * @see ResourceManagementMBean#getConfigurationProperties(ResourceAdaptorID) */ public ConfigProperties getConfigurationProperties(ResourceAdaptorID id) throws NullPointerException, UnrecognizedResourceAdaptorException { if (logger.isTraceEnabled()) { logger.trace("Getting configuration properties for RA with id " + id); } if (id == null) throw new NullPointerException("null resource adaptor id"); ResourceAdaptorComponent component = getResourceAdaptorComponent(id); if (component == null) { throw new UnrecognizedResourceAdaptorException( "unrecognized resource adaptor " + id.toString()); } else { return component.getDefaultConfigPropertiesInstance(); } }
/** * Uninstalls the specified {@link ResourceAdaptorComponent} from the container * @param component * @throws DependencyException */ public void uninstallResourceAdaptor(ResourceAdaptorComponent component) throws DependencyException { if (logger.isDebugEnabled()) { logger.debug("Uninstalling " + component); } for (ResourceAdaptorEntity raEntity : resourceAdaptorEntities.values()) { if (raEntity.getResourceAdaptorID().equals(component.getResourceAdaptorID())) { throw new DependencyException("can't uninstall "+component.getResourceAdaptorID()+" since ra entity "+raEntity.getName()+" refers it"); } } }
this.resourceAdaptorID = new ResourceAdaptorID(resourceAdaptor .getResourceAdaptorName(), resourceAdaptor .getResourceAdaptorVendor(), resourceAdaptor