All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.objectweb.fractal.api.control.ContentControllerInterceptorIntent Maven / Gradle / Ivy
/*
* Generated by: org.ow2.frascati.tinfi.opt.oo.InterceptorClassGenerator
* on: Fri Jan 15 16:55:15 CET 2010
*/
package org.objectweb.fractal.api.control;
public class ContentControllerInterceptorIntent
extends org.ow2.frascati.tinfi.TinfiComponentInterceptor
implements org.objectweb.fractal.api.control.ContentController,org.objectweb.fractal.julia.Interceptor {
private static java.lang.reflect.Method[] METHODS;
private static class IntentJoinPointImplForMethod0
extends org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl {
public Object proceed() throws Throwable {
if( index == handlers.size() ) {
return intentTarget.getFcInternalInterfaces();
}
else {
return super.proceed();
}
}
}
private static class IntentJoinPointImplForMethod1
extends org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl {
public Object proceed() throws Throwable {
if( index == handlers.size() ) {
return intentTarget.getFcInternalInterface((java.lang.String)intentMethodArguments[0]);
}
else {
return super.proceed();
}
}
}
private static class IntentJoinPointImplForMethod2
extends org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl {
public Object proceed() throws Throwable {
if( index == handlers.size() ) {
return intentTarget.getFcSubComponents();
}
else {
return super.proceed();
}
}
}
private static class IntentJoinPointImplForMethod3
extends org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl {
public Object proceed() throws Throwable {
if( index == handlers.size() ) {
intentTarget.addFcSubComponent((org.objectweb.fractal.api.Component)intentMethodArguments[0]);
return null;
}
else {
return super.proceed();
}
}
}
private static class IntentJoinPointImplForMethod4
extends org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl {
public Object proceed() throws Throwable {
if( index == handlers.size() ) {
intentTarget.removeFcSubComponent((org.objectweb.fractal.api.Component)intentMethodArguments[0]);
return null;
}
else {
return super.proceed();
}
}
}
public ContentControllerInterceptorIntent() {
}
public ContentControllerInterceptorIntent(Object obj) {
setFcItfDelegate(obj);
}
public void initFcController(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException {
initIntentHandlersMap(METHODS);
super.initFcController(ic);
}
public Object clone() {
ContentControllerInterceptorIntent clone = new ContentControllerInterceptorIntent(getFcItfDelegate());
initFcClone(clone);
return clone;
}
public java.lang.Object[] getFcInternalInterfaces() {
java.util.List handlers = intentHandlersMap.get(METHODS[0]);
try {
if( handlers.size() == 0 ) {
java.lang.Object[] ret = impl.getFcInternalInterfaces();
return ret;
}
else {
org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext compctx = getFcCompCtxCtrlItf();
org.objectweb.fractal.api.Interface itf = getFcItf();
org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl ijp = new IntentJoinPointImplForMethod0();
ijp.init(handlers,compctx,itf,impl,METHODS[0]);
java.lang.Object[] ret = (java.lang.Object[]) 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.Object getFcInternalInterface(final java.lang.String arg0) throws org.objectweb.fractal.api.NoSuchInterfaceException {
java.util.List handlers = intentHandlersMap.get(METHODS[1]);
try {
if( handlers.size() == 0 ) {
java.lang.Object ret = impl.getFcInternalInterface(arg0);
return ret;
}
else {
org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext compctx = getFcCompCtxCtrlItf();
org.objectweb.fractal.api.Interface itf = getFcItf();
org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl ijp = new IntentJoinPointImplForMethod1();
ijp.init(handlers,compctx,itf,impl,METHODS[1],arg0);
java.lang.Object ret = ijp.proceed();
return ret;
}
}
catch( Throwable t ) {
if( t instanceof org.objectweb.fractal.api.NoSuchInterfaceException ) {
throw (org.objectweb.fractal.api.NoSuchInterfaceException) t;
}
if( t instanceof RuntimeException ) {
throw (RuntimeException) t;
}
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t);
}
}
public org.objectweb.fractal.api.Component[] getFcSubComponents() {
java.util.List handlers = intentHandlersMap.get(METHODS[2]);
try {
if( handlers.size() == 0 ) {
org.objectweb.fractal.api.Component[] ret = impl.getFcSubComponents();
return ret;
}
else {
org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext compctx = getFcCompCtxCtrlItf();
org.objectweb.fractal.api.Interface itf = getFcItf();
org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl ijp = new IntentJoinPointImplForMethod2();
ijp.init(handlers,compctx,itf,impl,METHODS[2]);
org.objectweb.fractal.api.Component[] ret = (org.objectweb.fractal.api.Component[]) ijp.proceed();
return ret;
}
}
catch( Throwable t ) {
if( t instanceof RuntimeException ) {
throw (RuntimeException) t;
}
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t);
}
}
public void addFcSubComponent(final org.objectweb.fractal.api.Component arg0) throws org.objectweb.fractal.api.control.IllegalContentException,org.objectweb.fractal.api.control.IllegalLifeCycleException {
java.util.List handlers = intentHandlersMap.get(METHODS[3]);
try {
if( handlers.size() == 0 ) {
impl.addFcSubComponent(arg0);
}
else {
org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext compctx = getFcCompCtxCtrlItf();
org.objectweb.fractal.api.Interface itf = getFcItf();
org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl ijp = new IntentJoinPointImplForMethod3();
ijp.init(handlers,compctx,itf,impl,METHODS[3],arg0);
ijp.proceed();
Object ret = null;
}
}
catch( Throwable t ) {
if( t instanceof org.objectweb.fractal.api.control.IllegalContentException ) {
throw (org.objectweb.fractal.api.control.IllegalContentException) t;
}
if( t instanceof org.objectweb.fractal.api.control.IllegalLifeCycleException ) {
throw (org.objectweb.fractal.api.control.IllegalLifeCycleException) t;
}
if( t instanceof RuntimeException ) {
throw (RuntimeException) t;
}
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t);
}
}
public void removeFcSubComponent(final org.objectweb.fractal.api.Component arg0) throws org.objectweb.fractal.api.control.IllegalContentException,org.objectweb.fractal.api.control.IllegalLifeCycleException {
java.util.List handlers = intentHandlersMap.get(METHODS[4]);
try {
if( handlers.size() == 0 ) {
impl.removeFcSubComponent(arg0);
}
else {
org.ow2.frascati.tinfi.control.component.ReconfigurableComponentContext compctx = getFcCompCtxCtrlItf();
org.objectweb.fractal.api.Interface itf = getFcItf();
org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl ijp = new IntentJoinPointImplForMethod4();
ijp.init(handlers,compctx,itf,impl,METHODS[4],arg0);
ijp.proceed();
Object ret = null;
}
}
catch( Throwable t ) {
if( t instanceof org.objectweb.fractal.api.control.IllegalContentException ) {
throw (org.objectweb.fractal.api.control.IllegalContentException) t;
}
if( t instanceof org.objectweb.fractal.api.control.IllegalLifeCycleException ) {
throw (org.objectweb.fractal.api.control.IllegalLifeCycleException) t;
}
if( t instanceof RuntimeException ) {
throw (RuntimeException) t;
}
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t);
}
}
static {
try {
METHODS = new java.lang.reflect.Method[]{
org.objectweb.fractal.api.control.ContentController.class.getMethod("getFcInternalInterfaces"),
org.objectweb.fractal.api.control.ContentController.class.getMethod("getFcInternalInterface",java.lang.String.class),
org.objectweb.fractal.api.control.ContentController.class.getMethod("getFcSubComponents"),
org.objectweb.fractal.api.control.ContentController.class.getMethod("addFcSubComponent",org.objectweb.fractal.api.Component.class),
org.objectweb.fractal.api.control.ContentController.class.getMethod("removeFcSubComponent",org.objectweb.fractal.api.Component.class),
};
}
catch( NoSuchMethodException e ) {
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(e);
}
}
}