public Object clone() { ComponentContextInterceptorSCAIntent clone = new ComponentContextInterceptorSCAIntent(getFcItfDelegate()); initFcClone(clone); clone.initIntentHandlersMap(METHODS); return clone; }
private ComponentContextInterceptorSCAIntent(Object obj) { setFcItfDelegate(obj); }
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 Enumeration<URL> run() { try { return classLoader.getResources(compositeURI); } catch (IOException e) { throw new ServiceRuntimeException(e); } } });
public <B> B getService(Class<B> businessInterface, String serviceName) { ServiceReference<B> serviceReference = getServiceReference(businessInterface, serviceName); if (serviceReference == null) { throw new ServiceRuntimeException("Service not found: " + serviceName); } return serviceReference.getService(); }
public <CB> CB getCallback() { ServiceReference<CB> cb = getCallbackReference(); if (cb == null) { return null; } return cb.getService(); }
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> createSelfReference(final java.lang.Class<B> arg0) 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>createSelfReference(arg0); return ret; }
public java.lang.String getURI() { 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."); } java.lang.String ret = impl.getURI(); return ret; }
public <T> T getService(Class<T> interfaze) { try { return serviceResolver.resolve(interfaze); } catch (Fabric3Exception e) { throw new ServiceRuntimeException(e); } }
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> B getService(Class<B> businessInterface, String serviceName) { ServiceReference<B> serviceReference = getServiceReference(businessInterface, serviceName); if (serviceReference == null) { throw new ServiceRuntimeException("Service not found: " + serviceName); } return serviceReference.getService(); }
public <B> B getService(Class<B> businessInterface, String referenceName) throws IllegalArgumentException { B service = null; ServiceReference<B> serviceRef = getServiceReference(businessInterface, referenceName); if (serviceRef != null) { service = serviceRef.getService(); } return service; }
public Object clone() { ComponentContextInterceptorSCAIntent clone = new ComponentContextInterceptorSCAIntent(getFcItfDelegate()); initFcClone(clone); clone.initIntentHandlersMap(METHODS); return clone; }
private ComponentContextInterceptorSCAIntent(Object obj) { setFcItfDelegate(obj); }
public <T> T getChannel(Class<T> interfaze, String name) { try { return channelResolver.getProducer(interfaze, name); } catch (Fabric3Exception e) { throw new ServiceRuntimeException(e); } }
public Domain deploy(Composite composite) { try { provisioner.deploy(composite); return this; } catch (Fabric3Exception e) { throw new ServiceRuntimeException(e); } }
public Domain deploy(Composite composite) { try { provisioner.deploy(composite); return this; } catch (DeploymentException e) { throw new ServiceRuntimeException(e); } }
public Domain undeploy(QName name) { try { provisioner.undeploy(name); return this; } catch (DeploymentException e) { throw new ServiceRuntimeException(e); } }
public B getService() { try { resolve(); return getProxy(); } catch (Exception e) { throw new ServiceRuntimeException(e); } }