/** * @see org.objectweb.fractal.juliac.fraclet.control.binding.FracletBindingControllerMixin#lookupFc(java.lang.String) */ private java.lang.Object lookupFc$1(final java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException { if (bc) return lookupFc$2(clientItfName); org.objectweb.fractal.api.type.InterfaceType it = juliac.generated.ContainerBindingControllerImpl.getFcInterfaceType(weaveableC, clientItfName); java.lang.String itname = it.getFcItfName(); org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<org.objectweb.fractal.fraclet.annotations.Requires> ip = ipm.get(itname); if (ip == null) { throw new org.objectweb.fractal.api.NoSuchInterfaceException(clientItfName); } java.lang.Object srv = org.objectweb.fractal.juliac.commons.ipf.InjectionPointHelper.get(ip, fcContent); boolean isCollection = it.isFcCollectionItf(); if (isCollection) { java.util.Map<java.lang.String, java.lang.Object> map = ((java.util.Map<java.lang.String, java.lang.Object>) (srv)); java.lang.String key = computeCollectionKeyBindingName(clientItfName, itname); srv = map.get(key); } return srv; }
/** * @see org.objectweb.fractal.juliac.fraclet.control.binding.FracletBindingControllerMixin#bindFc(java.lang.String,java.lang.Object) */ private void bindFc$2(final java.lang.String clientItfName, final java.lang.Object serverItf) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (bc) { bindFc$3(clientItfName, serverItf); return; } org.objectweb.fractal.api.type.InterfaceType it = juliac.generated.ContainerBindingControllerImpl.getFcInterfaceType(weaveableC, clientItfName); java.lang.String itname = it.getFcItfName(); org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<org.objectweb.fractal.fraclet.annotations.Requires> ip = ipm.get(itname); if (ip == null) { throw new org.objectweb.fractal.api.NoSuchInterfaceException(clientItfName); } boolean isCollection = it.isFcCollectionItf(); if (isCollection) { java.util.Map<java.lang.String, java.lang.Object> map = ((java.util.Map<java.lang.String, java.lang.Object>) (org.objectweb.fractal.juliac.commons.ipf.InjectionPointHelper.get(ip, fcContent))); java.lang.String key = computeCollectionKeyBindingName(clientItfName, itname); map.put(key, serverItf); }else { org.objectweb.fractal.juliac.commons.ipf.InjectionPointHelper.set(ip, fcContent, serverItf); } }
/** * @see org.objectweb.fractal.juliac.fraclet.control.binding.FracletBindingControllerMixin#unbindFc(java.lang.String) */ private void unbindFc$2(final java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (bc) { unbindFc$3(clientItfName); return; } org.objectweb.fractal.api.type.InterfaceType it = juliac.generated.ContainerBindingControllerImpl.getFcInterfaceType(weaveableC, clientItfName); java.lang.String itname = it.getFcItfName(); org.objectweb.fractal.juliac.commons.ipf.InjectionPoint<org.objectweb.fractal.fraclet.annotations.Requires> ip = ipm.get(itname); if (ip == null) { throw new org.objectweb.fractal.api.NoSuchInterfaceException(clientItfName); } boolean isCollection = it.isFcCollectionItf(); if (isCollection) { java.util.Map<java.lang.String, java.lang.Object> map = ((java.util.Map<java.lang.String, java.lang.Object>) (org.objectweb.fractal.juliac.commons.ipf.InjectionPointHelper.get(ip, fcContent))); java.lang.String key = computeCollectionKeyBindingName(clientItfName, itname); map.remove(key); }else { org.objectweb.fractal.juliac.commons.ipf.InjectionPointHelper.set(ip, fcContent, null); } }