public <B>B getService(final java.lang.Class<B> arg0,final java.lang.String arg1) throws java.lang.IllegalArgumentException { 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."); } B ret = impl.<B>getService(arg0,arg1); return ret; }
public <B>B getService(final java.lang.Class<B> arg0,final java.lang.String arg1) throws java.lang.IllegalArgumentException { 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."); } B ret = impl.<B>getService(arg0,arg1); return ret; }
public <B>B getService(final java.lang.Class<B> arg0,final java.lang.String arg1) throws java.lang.IllegalArgumentException { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[2]); try { if( handlers.size() == 0 ) { B ret = impl.<B>getService(arg0,arg1); return ret; } else { org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<org.oasisopen.sca.ComponentContext> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,fcComp,itf,impl,METHODS[2],(Object)arg0,(Object)arg1); B ret = (B) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof java.lang.IllegalArgumentException ) { throw (java.lang.IllegalArgumentException) t; } if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
public <B>B getService(final java.lang.Class<B> arg0,final java.lang.String arg1) throws java.lang.IllegalArgumentException { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[2]); try { if( handlers.size() == 0 ) { B ret = impl.<B>getService(arg0,arg1); return ret; } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<org.oasisopen.sca.ComponentContext> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[2],(Object)arg0,(Object)arg1); B ret = (B) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof java.lang.IllegalArgumentException ) { throw (java.lang.IllegalArgumentException) t; } if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }