public java.lang.String[] listFc() { 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.listFc(); return ret; }
public java.lang.String[] listFc() { 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.listFc(); return ret; }
public java.lang.String[] listFc() { 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.listFc(); return ret; }
public String[] listFc () { if (fcContent == this) { // case of merge...AndContent options if (this instanceof ContentBindingController) { return ((ContentBindingController)this).listFcContent(); } } else if (fcContent instanceof BindingController) { return ((BindingController)fcContent).listFc(); } return new String[0]; }
public String[] listFc () { if (fcContent == this) { // case of merge...AndContent options if (this instanceof ContentBindingController) { return ((ContentBindingController)this).listFcContent(); } } else if (fcContent instanceof BindingController) { return ((BindingController)fcContent).listFc(); } return new String[0]; }
/** * @see org.objectweb.fractal.julia.control.binding.ContainerBindingControllerMixin#listFc() */ private java.lang.String[] listFc$0() { if ((fcContent) == (this)) { if ((this) instanceof org.objectweb.fractal.julia.control.binding.ContentBindingController) { return ((org.objectweb.fractal.julia.control.binding.ContentBindingController) (this)).listFcContent(); } }else if ((fcContent) instanceof org.objectweb.fractal.api.control.BindingController) { return ((org.objectweb.fractal.api.control.BindingController) (fcContent)).listFc(); } return new java.lang.String[0]; }
public List<String> getListOfBinds(final Component component) throws SCAException { final List<String> res = new ArrayList<String>(); try { // Get the binding controller of the new component final BindingController cBindingController = Fractal .getBindingController(component); // Get all the bindings for (int i = 0; i < cBindingController.listFc().length; i++) { res.add(cBindingController.listFc()[i] + " link to " + cBindingController.lookupFc(cBindingController .listFc()[i])); } } catch (final NoSuchInterfaceException e) { throw new SCAException( "Impossible to bind the fractal component", e); } return res; }
public Map<String, Object> getListOfBindings(final Component component) throws SCAException{ Map<String, Object> res = new HashMap<String, Object>(); // Get the binding controller of the new component try { final BindingController cBindingController = Fractal .getBindingController(component); String[] binds = cBindingController.listFc(); for(int i=0 ; i < binds.length ; i++){ res.put(binds[i], cBindingController.lookupFc(cBindingController.listFc()[i])); } } catch (NoSuchInterfaceException e) { throw new SCAException(e.getLocalizedMessage()); } return res; }
/** * A utility function allowing to get components interface binding to the * client interface of the component controller. * * @param parentContentController * parentContentController * @param name * component name * @return the component, null if not found */ public Map<String, Interface> getServerInterfacesLinkedToClientInterfacesOfComponent( final Component component) { final Map<String, Interface> res = new HashMap<String, Interface>(); try { final BindingController componentBindingController = Fractal .getBindingController(component); // List content controller subcomponents for (final String clientItfName : componentBindingController.listFc()) { final Interface itf = (org.objectweb.fractal.api.Interface) componentBindingController .lookupFc(clientItfName); res.put(clientItfName, itf); } } catch (final NoSuchInterfaceException e1) { // do nothing, return null } return res; }
/** * Checks that the component this controller belongs to is not bound, and * then calls the overriden method. */ public void undeploy() throws UndeploymentException { String[] itfs = _this_weaveableBC.listFc(); for (int i = 0; i < itfs.length; i++) { try { Object o = _this_weaveableBC.lookupFc(itfs[i]); if (o != null) { throw new UndeploymentException( "Component is bound to other components. Unbind it before undeployment"); } } catch (NoSuchInterfaceException ignored) { } } _super_undeploy(); }
public void unexportFcInterface(final String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { if (!fcExportedInterfaces.containsKey(clientItfName)) { throw new ChainedNoSuchInterfaceException(null, _this_weaveableC, "Interface '" + clientItfName + "' does not correspond to an exported client interface."); } final Interface innerItf = fcExportedInterfaces.get(clientItfName); for (final String itfName : getBindingController(innerItf.getFcItfOwner()) .listFc()) { if (itfName.startsWith(innerItf.getFcItfName())) { throw new ChainedIllegalBindingException(null, innerItf.getFcItfOwner(), _this_weaveableC, innerItf.getFcItfName(), clientItfName, "Cannot unexport the collection interface. Interface '" + itfName + "' must be unbound first."); } } fcExportedInterfaces.remove(clientItfName); }
/** * Undind the component and then calls the overriden method. */ public void undeploy() throws UndeploymentException { if (_this_weaveableBC != null) { String[] itfs = _this_weaveableBC.listFc(); if (itfs.length != 0) { for (int i = 0; i < itfs.length; i++) { try { if (_this_weaveableBC.lookupFc(itfs[i]) != null) { _this_weaveableBC.unbindFc(itfs[i]); } } catch (Exception e) { throw new ChainedUndeploymentException(e, _this_weaveableC, e.getMessage()); } } } } _super_undeploy(); }
public java.lang.String[] listFc() { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[3]); try { if( handlers.size() == 0 ) { java.lang.String[] ret = impl.listFc(); return ret; } else { org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<org.objectweb.fractal.api.control.BindingController> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,fcComp,itf,impl,METHODS[3]); java.lang.String[] ret = (java.lang.String[]) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
public java.lang.String[] listFc() { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[0]); try { if( handlers.size() == 0 ) { java.lang.String[] ret = impl.listFc(); return ret; } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<org.objectweb.fractal.api.control.BindingController> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[0]); java.lang.String[] ret = (java.lang.String[]) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
java.lang.String[] names = bc.listFc(); for (int i = 0; i < (names.length); ++i) { org.objectweb.fractal.api.type.InterfaceType itfType;
java.lang.String[] names = bc.listFc(); for (int i = 0; i < (names.length); ++i) { org.objectweb.fractal.api.type.InterfaceType itfType;
java.lang.String[] names = bc.listFc(); for (int i = 0; i < (names.length); ++i) { org.objectweb.fractal.api.type.InterfaceType itfType;
String[] names = bc.listFc(); for (int i = 0 ; i < (names.length) ; ++i) { InterfaceType itfType;
for (String bindingName : systemRecoveryBC.listFc()) { systemRecoveryBC.unbindFc(bindingName);
for (String bindingName : systemRecoveryBC.listFc()) { systemRecoveryBC.unbindFc(bindingName);