com.tibco.amf.platform.runtime.extension.context
Interface ComponentContext

All Superinterfaces:
BaseContext, org.osoa.sca.ComponentContext

public interface ComponentContext
extends org.osoa.sca.ComponentContext, BaseContext

Extends the SCA ComponentContext with additional context of the component.


Method Summary
 org.osoa.sca.ServiceReference<?> getBestServiceReference(java.lang.String referenceName)
          Returns the best ServiceReference for a reference defined by this component.
 ImplementationContext getImplementationContext()
          Returns the context of the implementation.
 java.util.Map<java.lang.String,com.tibco.amf.sca.model.extensionpoints.Interface> getReferenceInterfaces()
          Returns a Map of reference name to Interface for this component.
 java.lang.String getReferenceURI(java.lang.String referenceName)
          Returns the reference URI using the SCA syntax for the given reference name.
<B> B
getService(java.lang.Class<B> businessInterface, java.lang.String referenceName, com.tibco.amf.platform.runtime.extension.databinding.MessageFormatProvider<? extends com.tibco.amf.platform.runtime.extension.databinding.MessageFormat> messageFormatProvider)
          Deprecated. 
 java.util.Map<java.lang.String,com.tibco.amf.sca.model.extensionpoints.Interface> getServiceInterfaces()
          Returns a Map of service name to Interface for this component.
 org.osoa.sca.ServiceReference<?> getServiceReference(java.lang.String referenceName, java.lang.Class<?>[] businessInterfaces)
          Deprecated. 
 java.lang.String getServiceURI(java.lang.String serviceName)
          Returns the service URI using the SCA syntax for the given service name.
 void setRequestContext(RequestContext requestContext)
          Sets context for the current SCA service request, or null if there is no current request or if the context is unavailable.
 
Methods inherited from interface org.osoa.sca.ComponentContext
cast, createSelfReference, createSelfReference, getProperty, getRequestContext, getService, getServiceReference, getURI
 
Methods inherited from interface com.tibco.amf.platform.runtime.extension.context.BaseContext
createMutableRequestContext, createMutableRequestContext, createRequestContextFromBytes, getApplicationName, getBundleContext, getClassLoader, getComponentName, getComponentRevision, getComponentVersion, getContextLogger, getDesignURI, getEnvironmentName, getHostName, getLifeCycleEvent, getLogger, getMBeanServer, getMessageLogger, getNodeName, getPolicies, getPolicyProperty, getProperty, getPropertyNames, getResourceAdapter, getTransactionManager, getTypeDisplayName, getURI, getURLToFileConverter, getUserTransaction, getWorkArea
 

Method Detail

getBestServiceReference

org.osoa.sca.ServiceReference<?> getBestServiceReference(java.lang.String referenceName)
Returns the best ServiceReference for a reference defined by this component. The returned ServiceReference will implement the business interface. The interface will be selected to optimize message conversions.

Parameters:
referenceName - the name of the reference
Returns:
a ServiceReference for the designated reference

getServiceReference

@Deprecated
org.osoa.sca.ServiceReference<?> getServiceReference(java.lang.String referenceName,
                                                                java.lang.Class<?>[] businessInterfaces)
Deprecated. 

Returns a ServiceReference for a reference defined by this component. The returned ServiceReference will implement one of the given business interface. The interface will be selected to optimize message conversions.

Parameters:
referenceName - the name of the reference
businessInterfaces - the interfaces that can be used to invoke the service
Returns:
a ServiceReference for the designated reference

getService

@Deprecated
<B> B getService(java.lang.Class<B> businessInterface,
                            java.lang.String referenceName,
                            com.tibco.amf.platform.runtime.extension.databinding.MessageFormatProvider<? extends com.tibco.amf.platform.runtime.extension.databinding.MessageFormat> messageFormatProvider)
Deprecated. 

Returns a proxy for a reference defined by this component.

Parameters:
businessInterface - the interface that will be used to invoke the service
referenceName - the name of the reference
messageFormatProvider - MessageFormatProvider that should be used to invoke the reference
Returns:
an object that implements the business interface

getServiceURI

java.lang.String getServiceURI(java.lang.String serviceName)
Returns the service URI using the SCA syntax for the given service name.

Parameters:
serviceName - name of the service
Returns:
the service URI

getReferenceURI

java.lang.String getReferenceURI(java.lang.String referenceName)
Returns the reference URI using the SCA syntax for the given reference name.

Parameters:
referenceName - name of the reference
Returns:
the reference URI

getImplementationContext

ImplementationContext getImplementationContext()
Returns the context of the implementation.

Returns:
the context of the implementation

getServiceInterfaces

java.util.Map<java.lang.String,com.tibco.amf.sca.model.extensionpoints.Interface> getServiceInterfaces()
Returns a Map of service name to Interface for this component.

Returns:
a Map of service name to Interface

getReferenceInterfaces

java.util.Map<java.lang.String,com.tibco.amf.sca.model.extensionpoints.Interface> getReferenceInterfaces()
Returns a Map of reference name to Interface for this component.

Returns:
a Map of reference name to Interface

setRequestContext

void setRequestContext(RequestContext requestContext)
Sets context for the current SCA service request, or null if there is no current request or if the context is unavailable.

Parameters:
requestContext - the SCA request context; may be null


Copyright © 2010 TIBCO Software Inc. All Rights Reserved.