/** * Returns the {@link Factory} interface of the given component. * * @param component a component. * @return the {@link Factory} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static Factory getFactory (final Component component) throws NoSuchInterfaceException { return (Factory)component.getFcInterface("factory"); }
public java.lang.Object[] getFcInterfaces() { 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.Object[] ret = impl.getFcInterfaces(); return ret; }
public org.objectweb.fractal.api.Type getFcType() { 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."); } org.objectweb.fractal.api.Type ret = impl.getFcType(); return ret; }
/** * Returns the {@link AttributeController} interface of the given component. * * @param component a component. * @return the {@link AttributeController} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static AttributeController getAttributeController ( final Component component) throws NoSuchInterfaceException { return (AttributeController)component.getFcInterface("attribute-controller"); }
public org.objectweb.fractal.api.Type getFcType() { 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."); } org.objectweb.fractal.api.Type ret = impl.getFcType(); return ret; }
public java.lang.Object[] getFcInterfaces() { 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.Object[] ret = impl.getFcInterfaces(); return ret; }
/** * Returns the {@link BindingController} interface of the given component. * * @param component a component. * @return the {@link BindingController} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static BindingController getBindingController ( final Component component) throws NoSuchInterfaceException { return (BindingController)component.getFcInterface("binding-controller"); }
public org.objectweb.fractal.api.Type getFcType() { 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."); } org.objectweb.fractal.api.Type ret = impl.getFcType(); return ret; }
public java.lang.Object[] getFcInterfaces() { 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.Object[] ret = impl.getFcInterfaces(); return ret; }
/** * Returns the {@link GenericFactory} interface of the given component. * * @param component a component. * @return the {@link GenericFactory} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static GenericFactory getGenericFactory (final Component component) throws NoSuchInterfaceException { return (GenericFactory)component.getFcInterface("generic-factory"); }
/** Return the Fractal type of this component. */ public Type getFcInstanceType() { Component boot = newFcInstance(); Type type = boot.getFcType(); return type; }
@Override public Set<Node> selectFrom(Node source) { Component comp = ((ComponentNode) source).getComponent(); ContentController cc = null; Set<Node> result = new HashSet<Node>(); Object[] rawItfs = comp.getFcInterfaces(); addInterfaces(rawItfs, result); addPrototypeInterfaces(comp, cc, result); return result; }
/** * Return the <code>itfName</code> server interface of type <code>cl</code> * for the specified component. */ public static <T> T getService( Component c, Class<T> cl, String itfName ) throws NoSuchInterfaceException { T s = (T) c.getFcInterface(itfName); return s; }
/** * @see org.ow2.frascati.tinfi.control.content.TypeCheckSCAContentMixin#setFcContent(java.lang.Object) */ private void setFcContent$0(java.lang.Object content) throws org.objectweb.fractal.api.control.IllegalLifeCycleException, org.ow2.frascati.tinfi.api.control.ContentInstantiationException { org.objectweb.fractal.api.Type type = weaveableC.getFcType(); java.lang.Class<?> c = content.getClass(); checkType(type, c); setFcContent$1(content); }
/** * Returns the {@link ContentController} interface of the given component. * * @param component a component. * @return the {@link ContentController} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static ContentController getContentController ( final Component component) throws NoSuchInterfaceException { return (ContentController)component.getFcInterface("content-controller"); }
public void setFcContent( Object content ) throws IllegalLifeCycleException, ContentInstantiationException { Type type = _this_weaveableC.getFcType(); Class<?> c = content.getClass(); checkType(type,c); _super_setFcContent(content); }
/** * Returns the {@link SuperController} interface of the given component. * * @param component a component. * @return the {@link SuperController} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static SuperController getSuperController (final Component component) throws NoSuchInterfaceException { return (SuperController)component.getFcInterface("super-controller"); }
public void setFcContentClass( Class<?> c ) throws IllegalLifeCycleException, ContentInstantiationException { Type type = _this_weaveableC.getFcType(); checkType(type,c); _super_setFcContentClass(c); }
/** * Returns the {@link NameController} interface of the given component. * * @param component a component. * @return the {@link NameController} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static NameController getNameController (final Component component) throws NoSuchInterfaceException { return (NameController)component.getFcInterface("name-controller"); }
/** * @see org.ow2.frascati.tinfi.control.content.TypeCheckSCAContentMixin#setFcContentClass(java.lang.Class<?>) */ private void setFcContentClass$0(java.lang.Class<?> c) throws org.objectweb.fractal.api.control.IllegalLifeCycleException, org.ow2.frascati.tinfi.api.control.ContentInstantiationException { org.objectweb.fractal.api.Type type = weaveableC.getFcType(); checkType(type, c); setFcContentClass$1(c); }