org.ow2.frascati.binding.http.ServletManagerInterceptorSCAIntent Maven / Gradle / Ivy
/*
* Generated by: org.ow2.frascati.tinfi.opt.oo.InterceptorClassGenerator
* on: Thu Aug 19 19:00:52 CEST 2010
*/
package org.ow2.frascati.binding.http;
public class ServletManagerInterceptorSCAIntent
extends org.ow2.frascati.tinfi.TinfiComponentInterceptor
implements org.ow2.frascati.binding.http.ServletManager,org.objectweb.fractal.julia.Interceptor {
private static java.lang.reflect.Method[] METHODS;
public ServletManagerInterceptorSCAIntent() {
}
private ServletManagerInterceptorSCAIntent(Object obj) {
setFcItfDelegate(obj);
}
public void initFcController(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException {
super.initFcController(ic);
initIntentHandlersMap(METHODS);
}
public Object clone() {
ServletManagerInterceptorSCAIntent clone = new ServletManagerInterceptorSCAIntent(getFcItfDelegate());
initFcClone(clone);
return clone;
}
public void unregisterServlet(final java.lang.String arg0) {
java.util.List handlers = intentHandlersMap.get(METHODS[1]);
try {
if( handlers.size() == 0 ) {
impl.unregisterServlet(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 org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl();
ijp.init(handlers,compctx,itf,impl,METHODS[1],arg0);
ijp.proceed();
Object ret = null;
}
}
catch( Throwable t ) {
if( t instanceof RuntimeException ) {
throw (RuntimeException) t;
}
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t);
}
}
public void registerServlet(final java.lang.String arg0,final javax.servlet.Servlet arg1) {
java.util.List handlers = intentHandlersMap.get(METHODS[0]);
try {
if( handlers.size() == 0 ) {
impl.registerServlet(arg0,arg1);
}
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 org.ow2.frascati.tinfi.control.intent.IntentJoinPointImpl();
ijp.init(handlers,compctx,itf,impl,METHODS[0],arg0,arg1);
ijp.proceed();
Object ret = null;
}
}
catch( Throwable 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.ow2.frascati.binding.http.ServletManager.class.getMethod("registerServlet",java.lang.String.class,javax.servlet.Servlet.class),
org.ow2.frascati.binding.http.ServletManager.class.getMethod("unregisterServlet",java.lang.String.class),
};
}
catch( NoSuchMethodException e ) {
throw new org.ow2.frascati.tinfi.TinfiRuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy