public <B>org.oasisopen.sca.ServiceReference<B> getServiceReference(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."); } org.oasisopen.sca.ServiceReference<B> ret = impl.<B>getServiceReference(arg0,arg1); return ret; }
public <B>org.oasisopen.sca.ServiceReference<B> getServiceReference(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."); } org.oasisopen.sca.ServiceReference<B> ret = impl.<B>getServiceReference(arg0,arg1); return ret; }
public static <T> T getReference(String name, Class<T> type, ServletContext sc) { ServiceReference<T> sr = getComponentContext(sc).getServiceReference(type, name); if (sr == null) { throw new ServiceRuntimeException("Reference '" + name + "' undefined"); } return sr.getService(); }
public static <T> T getReference(String name, Class<T> type, ServletContext sc) { ServiceReference<T> sr = getComponentContext(sc).getServiceReference(type, name); if (sr == null) { throw new ServiceRuntimeException("Reference '" + name + "' undefined"); } return sr.getService(); }
public <B>org.oasisopen.sca.ServiceReference<B> getServiceReference(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[9]); try { if( handlers.size() == 0 ) { org.oasisopen.sca.ServiceReference<B> ret = impl.<B>getServiceReference(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[9],(Object)arg0,(Object)arg1); org.oasisopen.sca.ServiceReference<B> ret = (org.oasisopen.sca.ServiceReference<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>org.oasisopen.sca.ServiceReference<B> getServiceReference(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[5]); try { if( handlers.size() == 0 ) { org.oasisopen.sca.ServiceReference<B> ret = impl.<B>getServiceReference(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[5],(Object)arg0,(Object)arg1); org.oasisopen.sca.ServiceReference<B> ret = (org.oasisopen.sca.ServiceReference<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); } }