public java.lang.String getFcName() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.String ret = impl.getFcName(); return ret; }
public java.lang.String getFcName() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.String ret = impl.getFcName(); return ret; }
public java.lang.String getFcName() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.lang.String ret = impl.getFcName(); return ret; }
private String getFCName(Component id) { try { NameController nc = Fractal.getNameController(id); return nc.getFcName(); } catch (NoSuchInterfaceException e) { throw new IllegalStateException("NameController required"); } }
public String getName(final Component comp) { String res = null; try { if (comp != null) { final NameController nc = Fractal.getNameController(comp); res = nc.getFcName(); } } catch (final NoSuchInterfaceException e) { // Do nothing } return res; }
/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#checkFcStopped() */ private void checkFcStopped() throws IllegalLifeCycleException { if ((weaveableOptLC) != null) { String state = weaveableOptLC.getFcState(); if (!(LifeCycleController.STOPPED.equals(state))) { String msg = ("Component " + (weaveableOptNC.getFcName())) + " is not stopped"; throw new IllegalLifeCycleException(msg); } } }
/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#checkFcStopped() */ private void checkFcStopped() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { if ((weaveableOptLC) != null) { java.lang.String state = weaveableOptLC.getFcState(); if (!(org.objectweb.fractal.api.control.LifeCycleController.STOPPED.equals(state))) { java.lang.String msg = ("Component " + (weaveableOptNC.getFcName())) + " is not stopped"; throw new org.objectweb.fractal.api.control.IllegalLifeCycleException(msg); } } }
private void escapePluginComponentName(final Component plugin) throws NoSuchInterfaceException { final NameController nc = Fractal.getNameController(plugin); final String originalName = nc.getFcName(); final String escapedName = originalName.replaceAll("[.]", "_"); nc.setFcName(escapedName); }
private void checkFcStopped() throws IllegalLifeCycleException { if( _this_weaveableOptLC != null ) { String state = _this_weaveableOptLC.getFcState(); if( ! LifeCycleController.STOPPED.equals(state) ) { String msg = "Component " + _this_weaveableOptNC.getFcName() + " is not stopped"; throw new IllegalLifeCycleException(msg); } } }
/** * @see org.ow2.frascati.tinfi.control.property.SCAPropertyPromoterMixin#setPromoter(java.lang.String,org.ow2.frascati.tinfi.api.control.SCAPropertyController) */ public void setPromoter(String name, SCAPropertyController promoter) throws IllegalPromoterException { promoters.put(name ,promoter); promoterPropNames.put(name ,name); if (promoter != null) { SCAPropertyController peer = promoter.getPromoter(name); if (peer == (this)) { String compname = weaveableOptNC.getFcName(); throw new IllegalPromoterException(compname); } } }
/** * @see org.ow2.frascati.tinfi.control.intent.LifeCycleIntentMixin#checkFcStopped() */ private void checkFcStopped() throws org.objectweb.fractal.api.control.IllegalLifeCycleException { if ((weaveableOptLC) != null) { java.lang.String state = weaveableOptLC.getFcState(); if (!(org.objectweb.fractal.api.control.LifeCycleController.STOPPED.equals(state))) { java.lang.String msg = ("Component " + (weaveableOptNC.getFcName())) + " is not stopped"; throw new org.objectweb.fractal.api.control.IllegalLifeCycleException(msg); } } }
public static List<Component> getComponentListByPrefix( final ContentController parentContentController, final String prefix) { List<Component> components = new ArrayList<>(); // List content controller subcomponents for (Component component : parentContentController.getFcSubComponents()) { try { String componentName = Fractal.getNameController(component).getFcName(); if (componentName.startsWith(prefix)) { components.add(component); } } catch (NoSuchInterfaceException e) { // do nothing } } return components; }
@Override public final String toString() { String ownerName = "<unnamed>"; try { ownerName = Fractal.getNameController(owner).getFcName(); } catch (NoSuchInterfaceException nsie) { // Ignore. } return "#<scaproperty: " + ownerName + "." + getName() + ">"; } }
public static Component getComponentByName(final ContentController parentContentController, final String name) { // List content controller subcomponents for (Component component : parentContentController.getFcSubComponents()) { try { String componentName = Fractal.getNameController(component).getFcName(); if (componentName.equals(name)) { return component; } } catch (NoSuchInterfaceException e) { // do nothing } } return null; }
public static Component getComponentByName(final ContentController parentContentController, final String name) { // List content controller subcomponents for (final Component component : parentContentController.getFcSubComponents()) { try { final String componentName = Fractal.getNameController(component).getFcName(); if (name.equals(componentName)) { return component; } } catch (final NoSuchInterfaceException e) { // do nothing } } return null; }
/** * @see org.ow2.frascati.tinfi.control.property.SCAPropertyPromoterMixin#setPromoter(java.lang.String,org.ow2.frascati.tinfi.api.control.SCAPropertyController) */ public void setPromoter(java.lang.String name, org.ow2.frascati.tinfi.api.control.SCAPropertyController promoter) throws org.ow2.frascati.tinfi.api.control.IllegalPromoterException { promoters.put(name, promoter); promoterPropNames.put(name, name); org.ow2.frascati.tinfi.api.control.SCAPropertyController peer = promoter.getPromoter(name); if (peer != null) { java.lang.Object peerInterceptor = ((org.objectweb.fractal.julia.ComponentInterface) (peer)).getFcItfImpl(); java.lang.Object peerImpl = ((org.objectweb.fractal.julia.Interceptor) (peerInterceptor)).getFcItfDelegate(); if (peerImpl == (this)) { java.lang.String compname = weaveableOptNC.getFcName(); throw new org.ow2.frascati.tinfi.api.control.IllegalPromoterException(compname); } } }
@Override public final String toString() { Component owner = itf.getFcItfOwner(); String ownerName = "<unnamed>"; try { ownerName = Fractal.getNameController(owner).getFcName(); } catch (NoSuchInterfaceException nsie) { // Ignore. } return "#<scaservice: " + ownerName + "." + getName() + ">"; } }
@Override public final String toString() { Component owner = itf.getFcItfOwner(); String ownerName = "<unnamed>"; try { ownerName = Fractal.getNameController(owner).getFcName(); } catch (NoSuchInterfaceException nsie) { // Ignore. } return "#<scareference: " + ownerName + "." + getName() + ">"; } }
private String getFullItfName(final TaskInterface itf) { try { return Fractal.getNameController(itf.getFcItfOwner()).getFcName() + '.' + itf.getFcItfName(); } catch (final NoSuchInterfaceException e) { return "anonymous." + itf.getFcItfName(); } }
String getFullInterfaceName(final Interface itf) { try { final String ownerName = Fractal.getNameController(itf.getFcItfOwner()) .getFcName(); return ownerName + '.' + itf.getFcItfName(); } catch (final NoSuchInterfaceException e) { return "anonymous." + itf.getFcItfName(); } }