Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   * 
  *   http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.    
  */
 
 package org.apache.tuscany.sca.runtime;
 
 import java.util.List;
 
The abstraction of an invocable model that contains invocation chains

Tuscany.spi.extension.asclient:
 
 public interface Invocable {
    
Bind the invocable to the composite context

Parameters:
context
 
     void bind(CompositeContext context);
    
    
Bind the invocable to the extension point registry and endpoint registry. This is typically called after the endpoint or endpoint reference is deserialized

Parameters:
registry
endpointRegistry
 
     void bind(ExtensionPointRegistry registryEndpointRegistry endpointRegistry);
    
    
Get the associated composite context

Returns:
 
     CompositeContext getCompositeContext();
    
    
Unbind the invocable from the composite context
 
     void unbind();

    
Get the component

Returns:
 
     Component getComponent();

    
Get the service or reference (contract)

Returns:
 
     Contract getContract();

    
Get the binding

Returns:
 
     Binding getBinding();
    
    
Returns the invocation chains for service operations associated with the wire

Returns:
the invocation chains for service operations associated with the wire
 
Lookup the invocation chain by operation

Parameters:
operation The operation
Returns:
The invocation chain for the given operation
 
     InvocationChain getInvocationChain(Operation operation);

    
Get the invocation chain for the binding-specific handling

Returns:
The binding invocation chain
This invoke method assumes that the binding invocation chain is in force and that there will be an operation selector element there to determine which operation to call

Parameters:
msg The request message
Returns:
The response message
    Message invoke(Message msg);

    
Invoke an operation with given arguments

Parameters:
operation The operation
args The arguments
Returns:
The result
Throws:
java.lang.reflect.InvocationTargetException
    Object invoke(Operation operationObject[] argsthrows InvocationTargetException;

    
Invoke an operation with a context message

Parameters:
operation The operation
msg The request message
Returns:
The response message
Throws:
java.lang.reflect.InvocationTargetException
    Message invoke(Operation operationMessage msg);

    
Get a list of policy providers

Returns:
New to GrepCode? Check out our FAQ X