/** * @return String[] supported configs * @since 3.1 */ public String[] getSupportedConfigs() { try { IContainerInstantiator ci = getInstantiator(); return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getSupportedConfigs(this) : null; } catch (Exception e) { traceAndLogException(IStatus.ERROR, "getSupportedConfigs", e); //$NON-NLS-1$ return null; } }
/** * @return String[] of container's intents. * * @since 3.0 */ public String[] getSupportedIntents() { try { IContainerInstantiator ci = getInstantiator(); return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getSupportedIntents(this) : null; } catch (Exception e) { traceAndLogException(IStatus.ERROR, "getSupportedIntents", e); //$NON-NLS-1$ return null; } }
result = r; } catch (Exception e) { traceAndLogException(IStatus.ERROR, "getSupportedAdapterTypes", e); //$NON-NLS-1$
/** * @param exporterSupportedConfigs exporter supported configs * @return String[] imported configs * @since 3.1 */ public String[] getImportedConfigs(String[] exporterSupportedConfigs) { if (exporterSupportedConfigs == null) return null; try { IContainerInstantiator ci = getInstantiator(); return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getImportedConfigs(this, exporterSupportedConfigs) : null; } catch (Exception e) { traceAndLogException(IStatus.ERROR, "getImportedConfigs", e); //$NON-NLS-1$ return null; } }
/** * @param importedConfigs imported configs * @param exportedProperties exported properties * @return Dictionary dictionary of properties for imported configs * @since 3.1 */ public Dictionary getPropertiesForImportedConfigs(String[] importedConfigs, Dictionary exportedProperties) { if (importedConfigs == null) return null; try { IContainerInstantiator ci = getInstantiator(); return (ci instanceof IRemoteServiceContainerInstantiator) ? ((IRemoteServiceContainerInstantiator) ci).getPropertiesForImportedConfigs(this, importedConfigs, exportedProperties) : null; } catch (Exception e) { traceAndLogException(IStatus.ERROR, "getPropertiesForImportedConfigs", e); //$NON-NLS-1$ return null; } }
/** * Get array of parameter types for this ContainerTypeDescription. Each of * the rows of the returned array specifies a Class[] of parameter types. * These parameter types correspond to the types of Objects that can be * passed into the second parameter of * {@link IContainerInstantiator#createInstance(ContainerTypeDescription, Object[])}. * For example, if this method returns a Class [] = {{ String.class, * String.class }, { String.class }} this indicates that a call to * createInstance(description,new String[] { "hello", "there" }) and a call * to createInstance(description,new String[] { "hello" }) will be * understood by the underlying provider implementation. * * @return Class[][] array of Class arrays. Each row corresponds to a * Class[] that describes the types of Objects for second parameter * to * {@link IContainerInstantiator#createInstance(ContainerTypeDescription, Object[])}. * If no parameter types are understood as arguments, a Class[0][0] * array will be returned */ public Class[][] getSupportedParameterTypes() { Class[][] result = {{}}; try { Class[][] r = getInstantiator().getSupportedParameterTypes(this); if (r != null) result = r; } catch (Exception e) { traceAndLogException(IStatus.ERROR, "getSupportedParameterTypes", e); //$NON-NLS-1$ } return result; }