/*
(non-Javadoc)

@see com.ibm.ws.sib.ra.inbound.SibRaEndpointConfigurationProvider#getEndpointConfiguration()
178906
public SibRaEndpointConfiguration getEndpointConfiguration()
                    throws InvalidPropertyException, ResourceAdapterInternalException {

        final String methodName = "getEndpointConfiguration";
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName);
        }

        final SibRaEndpointConfiguration configuration = new SibRaEndpointConfigurationImpl();

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName, configuration);
        }
        return configuration;

    }
1258706
public void setEndpointDescriptions(java.util.Collection<EndpointDescription> endpointDescriptions) {
        if (endpointDescriptions == null) {
            this.endpointDescriptions = null;
            return;
        }

        this.endpointDescriptions = new java.util.ArrayList<EndpointDescription>(endpointDescriptions);
    }
1304368
public void setEndpointConfigurations(java.util.Collection<EndpointConfiguration> endpointConfigurations) {
        if (endpointConfigurations == null) {
            this.endpointConfigurations = null;
            return;
        }

        this.endpointConfigurations = new java.util.ArrayList<EndpointConfiguration>(endpointConfigurations);
    }
573451
public EndpointRef getSourceEndpoint() {
        return new EndpointRef(TagUtil.getUriPath(topSpan.getTags()), topSpan.getOperationName(), false);
    }
980959
protected MessageEndpoint createEndpoint() throws ResourceException
    {
        final String methodName = "createEndpoint";
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
        {
            SibTr.entry(this, TRACE, methodName);
        }


            // Ensure that in non-WAS environments the activation spec used to create
            // the current connection specified a specific messaging engine. This is
            // required so that we always connect to the same messaging engine when
            // using the same activation specification to permit transaction recovery.

        	//chetan liberty change :
        	//getTarget() check is removed since in liberty we have 1 ME per liberty profile
            if ((_endpointConfiguration.getTargetSignificance().equals(SibTrmConstants.TARGET_SIGNIFICANCE_REQUIRED)) &&
                (_endpointConfiguration.getTargetType().equals(SibTrmConstants.TARGET_TYPE_ME))) {
                _sibXaResource = new SibRaXaResource (getXaResource());
            } else {
              String p0;          // Connection property name
              String p1;          // Required connection property value

              if (!_endpointConfiguration.getTargetSignificance().equals(SibTrmConstants.TARGET_SIGNIFICANCE_REQUIRED)) {
                p0 = SibTrmConstants.TARGET_SIGNIFICANCE;
                p1 = SibTrmConstants.TARGET_SIGNIFICANCE_REQUIRED;
              } else if (!_endpointConfiguration.getTargetType().equals(SibTrmConstants.TARGET_TYPE_ME)) {
                p0 = SibTrmConstants.TARGET_TYPE;
                p1 = SibTrmConstants.TARGET_TYPE_ME;
              } else {
                p0 = SibTrmConstants.TARGET_GROUP;
                p1 = "!null";
              }

              SibTr.error(TRACE, "ME_NAME_REQUIRED_CWSIV0652",new Object[] {p0,p1});
              throw new NotSupportedException(NLS.getFormattedMessage("ME_NAME_REQUIRED_CWSIV0652", new Object[] {p0,p1}, null));
            }
        

        final MessageEndpoint endpoint = _endpointFactory
                .createEndpoint(_sibXaResource);

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
        {
            SibTr.exit(this, TRACE, methodName, endpoint);
        }
        return endpoint;
    }
799958
@Override
  public Configuration getServiceConfiguration() {

    final Configuration partialServiceConf = ServiceConfiguration.CONF
        .set(ServiceConfiguration.SERVICES, taskOutputStreamProvider.getClass())
        .set(ServiceConfiguration.ON_CONTEXT_STOP, ContextStopHandler.class)
        .set(ServiceConfiguration.ON_TASK_STARTED, TaskStartHandler.class)
        .build();

    return Tang.Factory.getTang()
        .newConfigurationBuilder(partialServiceConf)
        .bindImplementation(OutputStreamProvider.class, taskOutputStreamProvider.getClass())
        .bindImplementation(TaskOutputStreamProvider.class, taskOutputStreamProvider.getClass())
        .bindNamedParameter(OutputPath.class, outputPath)
        .build();
  }
548137
@Override
    public String getProviderEndpoints() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getProviderEndpoints");
        String providerEndpoints = jcaConnectionFactory.getProviderEndpoints();
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getProviderEndpoints", providerEndpoints);
        return providerEndpoints;
    }
45576
final protected MessageEndpoint createEndpoint()
            throws UnavailableException {

        final String methodName = "createEndpoint";
        if (TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName);
        }

        final MessageEndpoint endpoint = _endpointFactory.createEndpoint(null);

        if (TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName, endpoint);
        }
        return endpoint;

    }
147408
public java.util.List<ServiceConfiguration> getServiceConfigurations() {
        if (serviceConfigurations == null) {
            serviceConfigurations = new com.amazonaws.internal.SdkInternalList<ServiceConfiguration>();
        }
        return serviceConfigurations;
    }
430634
@PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName())")
    public Set<RequestMappingInfo> getEndpoints(RequestMappingHandlerMapping requestMappingHandlerMapping) {

        if (requestMappingHandlerMapping.getHandlerMethods() != null) {
            return requestMappingHandlerMapping.getHandlerMethods().keySet();
        }

        return null;
    }
629924
@Override
  public Configuration getMainConfiguration() {

    return Tang.Factory.getTang().newConfigurationBuilder()
            .bindImplementation(RuntimeClasspathProvider.class, YarnClasspathProvider.class)
            .bindConstructor(org.apache.hadoop.yarn.conf.YarnConfiguration.class, YarnConfigurationConstructor.class)
            .build();
  }
234313
public SimpleConfiguration getClientConfiguration() {
    SimpleConfiguration clientConfig = new SimpleConfiguration();
    Iterator<String> iter = getKeys();
    while (iter.hasNext()) {
      String key = iter.next();
      if (key.startsWith(CONNECTION_PREFIX) || key.startsWith(ACCUMULO_PREFIX)
          || key.startsWith(CLIENT_PREFIX)) {
        clientConfig.setProperty(key, getRawString(key));
      }
    }
    return clientConfig;
  }
368316
public ConfigureForm getDefaultConfiguration() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        // Errors will cause exceptions in getReply, so it only returns
        // on success.
        PubSub reply = sendPubsubPacket(Type.get, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
        return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
    }
1152132
@RequestMapping(value = "configurations/{name}", method = RequestMethod.GET)
    public JIRAConfiguration getConfiguration(@PathVariable String name) {
        return jiraConfigurationService.getConfiguration(name);
    }
632738
public Object getValue(String parameter, Endpoint endpoint){
        return endpoint.getEndpointConfiguration().getParameter(parameter);
        
    }
1127725
@Produces
	@Configuration
	public org.apache.commons.configuration.Configuration getConfiguration(InjectionPoint injectionPoint) {
		// get configuration annotation
		ConfigurationWrapper annotation = this.getConfigurationWrapper(injectionPoint);
		// use shared implementation to get configuration
		return this.getConfiguration(annotation);
	}
43959
@NotNull
    @ObjectiveCName("addEndpoint:")
    public ConfigurationBuilder addEndpoint(@NotNull String url) {
        try {
            endpoints.addEndpoint(url);
        } catch (ConnectionEndpointArray.UnknownSchemeException e) {
            throw new RuntimeException(e.getMessage());
        }
        return this;
    }