Examples of ComponentReference


Examples of edu.indiana.extreme.xbaya.component.registry.ComponentReference

     */
    private void select(TreePath treePath) {
        logger.entering(treePath);
        final ComponentTreeNode selectedNode = (ComponentTreeNode) treePath
                .getLastPathComponent();
        final ComponentReference componentReference = selectedNode
                .getComponentReference();
        selectComponent(null);
        this.selectedComponentReference = null;
        if (componentReference != null) {
            this.selectedComponentReference = componentReference;
            new Thread() {
                @Override
                public void run() {
                    try {
                        // get all components and check the number of
                        // components. If there are multiple, expand the tree.
                        final List<? extends Component> components = componentReference
                                .getComponents();
                        if (components.size() == 1) {
                            selectComponent(components.get(0));
                        } else {
                            SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

Examples of fr.imag.adele.apam.declarations.references.components.ComponentReference

  // Get the RemoteDependency is multiple boolean
  Boolean multiple = json.get(JSON_IS_MULTIPLE).getBooleanValue();

  // Create the ComponentReference from its name
  ComponentReference<?> compref = new ComponentReference(json.get(
    JSON_COMP_REF_NAME).asText());

  // Get the ResolvableReference type
  RRTYPE rr_type = RRTYPE.valueOf(rr_json.get(JSON_RESOLVABLE_REF_TYPE)
    .asText());
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.ComponentReference

    private void drop(final DropTargetDropEvent event) {
        logger.debug("Event:" + event);
        Transferable transferable = event.getTransferable();
        try {
            // Cannot cast transferable.
            final ComponentReference componentReference = (ComponentReference) transferable
                    .getTransferData(ComponentSourceTransferable.FLAVOR);
            final Point location = event.getLocation();

            // The component might not have loaded if the network is slow.
            new Thread() {
                @Override
                public void run() {
                    try {
                        Component component = componentReference.getComponent();
                        addNode(component, location);
                        // To be able to delete the added node by the keyboard.
                        GraphCanvas.this.panel.requestFocusInWindow();
                        // XXX this sometimes throws exception.
                        event.dropComplete(true);
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.ComponentReference

     * @param treePath
     *            The path of the selected selectedComponent.
     */
    private void select(TreePath treePath) {
        final ComponentTreeNode selectedNode = (ComponentTreeNode) treePath.getLastPathComponent();
        final ComponentReference componentReference = selectedNode.getComponentReference();
        selectComponent(null);
        this.selectedComponentReference = null;
        if (componentReference != null) {
            this.selectedComponentReference = componentReference;
            new Thread() {
                @Override
                public void run() {
                    try {
                        // get all components and check the number of
                        // components. If there are multiple, expand the tree.
                        final List<? extends Component> components = componentReference.getComponents();
                        if (components.size() == 1) {
                            selectComponent(components.get(0));
                        } else {
                            SwingUtilities.invokeLater(new Runnable() {
                                public void run() {
View Full Code Here

Examples of org.apache.airavata.xbaya.component.registry.ComponentReference

     * @param treePath
     *            The path of the selected selectedComponent.
     */
    private void select(TreePath treePath) {
        final ComponentTreeNode selectedNode = (ComponentTreeNode) treePath.getLastPathComponent();
        final ComponentReference componentReference = selectedNode.getComponentReference();
        selectComponent(null);
        this.selectedComponentReference = null;
        if (componentReference != null) {
            this.selectedComponentReference = componentReference;
            new Thread() {
                @Override
                public void run() {
                    try {
                        // get all components and check the number of
                        // components. If there are multiple, expand the tree.
                        final List<? extends Component> components = componentReference.getComponents();
                        if (components.size() == 1) {
                            selectComponent(components.get(0));
                        } else {
                            SwingUtilities.invokeLater(new Runnable() {
                                public void run() {
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.ComponentReference

    }

    static Builder<ComponentReference> reference(final String name, final String target) {
        return new Builder<ComponentReference>() {
            public ComponentReference build(final Context ec) {
                final ComponentReference r = ec.af.createComponentReference();
                r.setName(name);
                final ComponentService s = ec.af.createComponentService();
                s.setUnresolved(true);
                s.setName(target);
                r.getTargets().add(s);
                return r;
            }
        };
    }
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.ComponentReference

                break;
            }
        }
        if (refWire != null) {
            Hashtable<String, Object> props = new Hashtable<String, Object>();
            ComponentReference scaRef = componentReferenceWires.get(refWire);
            processProperties(implementation.getReferenceCallbackProperties(scaRef.getName()), props);
            filter = getOSGiFilter(props);
        }
       
        return getOSGiServiceReference(callbackInterface, filter, null);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.ComponentReference

        // throught the instance wrapper, and hence requires a proxy. When we do this processing here,
        // we dont yet know whether the target requires any property or callback injection. So it is
        // safer to create a proxy all the time.
        boolean createProxy = true;
      
        ComponentReference scaRef = componentReferenceWires.get(wire);
        Hashtable<String, Object> targetProperties = new Hashtable<String, Object>();
        processProperties(implementation.getReferenceProperties(scaRef.getName()), targetProperties);
           

        if (isOSGiToOSGiWire) {
                   
                OSGiImplementationProvider implProvider = (OSGiImplementationProvider)wire.getTarget().getComponent().getImplementationProvider();
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.ComponentReference

   
   
    // Register proxy service
    private void resolveWireRegisterProxyService(Bundle bundle, Class interfaceClass, RuntimeWire wire) throws Exception {
         
        ComponentReference scaRef = componentReferenceWires.get(wire);
        Hashtable<String, Object> targetProperties = new Hashtable<String, Object>();
        processProperties(implementation.getReferenceProperties(scaRef.getName()), targetProperties);
        targetProperties.put(Constants.SERVICE_RANKING, Integer.MAX_VALUE);
       
        if (targetProperties.get(COMPONENT_SERVICE_NAME) == null && wire.getTarget().getComponent() != null) {
            String compServiceName = wire.getTarget().getComponent().getName() + "/" +
                                     wire.getTarget().getContract().getName();
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.ComponentReference

    private boolean setReferencesAndProperties() {
      
        for (Reference ref: implementation.getReferences()) {
            List<RuntimeWire> wireList = null;
            ComponentReference compRef = null;
            for (ComponentReference cRef : runtimeComponent.getReferences()) {
                if (cRef.getName().equals(ref.getName())) {
                   
                    wireList = ((RuntimeComponentReference)cRef).getRuntimeWires();
                   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.