/** * 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 Object clone() { ComponentInterceptorSCAIntent clone = new ComponentInterceptorSCAIntent(getFcItfDelegate()); initFcClone(clone); clone.initIntentHandlersMap(METHODS); return clone; }
private ComponentInterceptorSCAIntent(Object obj) { setFcItfDelegate(obj); }
/** * Returns a bootstrap component to create other components. This method * just calls the corresponding method of the * <tt>org.objectweb.fractal.api.Fractal</tt> class. * * @return a bootstrap component to create other components. * @throws InstantiationException if the bootstrap component cannot be * created. */ public static Component getBootstrapComponent () throws InstantiationException { return org.objectweb.fractal.api.Fractal.getBootstrapComponent(); }
/** * 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; }
public Object clone() { ComponentInterceptorSCAIntent clone = new ComponentInterceptorSCAIntent(getFcItfDelegate()); initFcClone(clone); clone.initIntentHandlersMap(METHODS); return clone; }
private ComponentInterceptorSCAIntent(Object obj) { setFcItfDelegate(obj); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * Returns the {@link LifeCycleController} interface of the given component. * * @param component a component. * @return the {@link LifeCycleController} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static LifeCycleController getLifeCycleController ( final Component component) throws NoSuchInterfaceException { return (LifeCycleController)component.getFcInterface("lifecycle-controller"); }
/** * Returns the {@link TypeFactory} interface of the given component. * * @param component a component. * @return the {@link TypeFactory} interface of the given component. * @throws NoSuchInterfaceException if there is no such interface. */ public static TypeFactory getTypeFactory (final Component component) throws NoSuchInterfaceException { return (TypeFactory)component.getFcInterface("type-factory"); } }
/** * @see org.objectweb.fractal.julia.control.content.SuperContentMixin#getFcSuperControllerNotifier(org.objectweb.fractal.api.Component) */ private org.objectweb.fractal.julia.control.content.SuperControllerNotifier getFcSuperControllerNotifier(final org.objectweb.fractal.api.Component c) { try { return ((org.objectweb.fractal.julia.control.content.SuperControllerNotifier) (c.getFcInterface("super-controller"))); } catch (java.lang.Exception e) { try { return ((org.objectweb.fractal.julia.control.content.SuperControllerNotifier) (c.getFcInterface("/super-controller-notifier"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException ignored) { return null; } } }
/** * @see org.objectweb.fractal.julia.control.content.SuperContentMixin#getFcSuperControllerNotifier(org.objectweb.fractal.api.Component) */ private org.objectweb.fractal.julia.control.content.SuperControllerNotifier getFcSuperControllerNotifier(final org.objectweb.fractal.api.Component c) { try { return ((org.objectweb.fractal.julia.control.content.SuperControllerNotifier) (c.getFcInterface("super-controller"))); } catch (java.lang.Exception e) { try { return ((org.objectweb.fractal.julia.control.content.SuperControllerNotifier) (c.getFcInterface("/super-controller-notifier"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException ignored) { return null; } } }
/** * @see org.objectweb.fractal.julia.control.content.SuperContentMixin#getFcSuperControllerNotifier(org.objectweb.fractal.api.Component) */ private org.objectweb.fractal.julia.control.content.SuperControllerNotifier getFcSuperControllerNotifier(final org.objectweb.fractal.api.Component c) { try { return ((org.objectweb.fractal.julia.control.content.SuperControllerNotifier) (c.getFcInterface("super-controller"))); } catch (java.lang.Exception e) { try { return ((org.objectweb.fractal.julia.control.content.SuperControllerNotifier) (c.getFcInterface("/super-controller-notifier"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException ignored) { return null; } } }
/** * Returns the undeployable component. * * @return the undeployable component. */ public Component getComponent() { if (component != null && !(component instanceof Interface)) { try { return (Component) component.getFcInterface("component"); } catch (NoSuchInterfaceException ignored) { } } return component; }
/** * @see org.objectweb.fractal.julia.control.content.SuperContentMixin#getFcSuperControllerNotifier(org.objectweb.fractal.api.Component) */ private SuperControllerNotifier getFcSuperControllerNotifier(final Component c) { try { return ((SuperControllerNotifier)(c.getFcInterface("super-controller"))); } catch (Exception e) { try { return ((SuperControllerNotifier)(c.getFcInterface("/super-controller-notifier"))); } catch (NoSuchInterfaceException ignored) { return null; } } }