/** * Gets the list of {@link BoundEndpoint} that are associated * with this endpoint. * * @return * always return the same set. */ public List<BoundEndpoint> getBoundEndpoints() { Module m = getContainer().getSPI(Module.class); return m != null ? m.getBoundEndpoints() : null; }
@Override public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { T t = resolve(p); try { return MethodUtil.invoke(t, m, args ); } finally { postInvoke(p,t); } }
protected static ResourceInjector getResourceInjector(WSEndpoint endpoint) { ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class); if(ri==null) ri = ResourceInjector.STANDALONE; return ri; }
/** * Creates a {@link Parser} that reads from {@link SDDocumentSource}. */ public Parser(SDDocumentSource doc) throws IOException, XMLStreamException { this.systemId = doc.getSystemId(); this.parser = doc.read(); }
public Engine(String id, Executor threadPool) { this(id, ContainerResolver.getDefault().getContainer(), threadPool); }
private Executor wrap(Executor ex) { return ContainerResolver.getDefault().wrapExecutor(container, ex); }
public void setEndpoint(WSEndpoint endpoint) { this.endpoint = endpoint; WSWebServiceContext webServiceContext = new AbstractWebServiceContext(endpoint) { public @Nullable Packet getRequestPacket() { Packet p = packets.get(); return p; } }; invoker.start(webServiceContext,endpoint); }
/** * Creates an {@link Adapter} that delivers * messages to the given endpoint. */ protected Adapter(WSEndpoint endpoint) { assert endpoint!=null; this.endpoint = endpoint; // Enables other components to reconfigure this adapter endpoint.getComponents().add(getEndpointComponent()); }
/** * Notifies the registered listeners about the scope change. */ private void fireScopeChanged() { for (ScopeChangeListener wsEndpoint : endpointsWaitingForMOM) { wsEndpoint.scopeChanged(this.scope); } for (ScopeChangeListener listener : listeners) { listener.scopeChanged(this.scope); } }
protected static ResourceInjector getResourceInjector(WSEndpoint endpoint) { ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class); if(ri==null) ri = ResourceInjector.STANDALONE; return ri; }
/** * Gets the list of {@link BoundEndpoint} that are associated * with this endpoint. * * @return * always return the same set. */ public List<BoundEndpoint> getBoundEndpoints() { Module m = getContainer().getSPI(Module.class); return m != null ? m.getBoundEndpoints() : null; }
@Override public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { T t = resolve(p); try { return MethodUtil.invoke(t, m, args ); } finally { postInvoke(p,t); } }
public Engine(String id, Executor threadPool) { this(id, ContainerResolver.getDefault().getContainer(), threadPool); }
/** * Notifies the registered listeners about the scope change. */ private void fireScopeChanged() { for (ScopeChangeListener wsEndpoint : endpointsWaitingForMOM) { wsEndpoint.scopeChanged(this.scope); } for (ScopeChangeListener listener : listeners) { listener.scopeChanged(this.scope); } }
private ResourceInjector getResourceInjector(WSEndpoint endpoint) { ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class); if(ri==null) ri = ResourceInjector.STANDALONE; return ri; }
/** * Gets the list of {@link BoundEndpoint} that are associated * with this endpoint. * * @return * always return the same set. */ public List<BoundEndpoint> getBoundEndpoints() { Module m = getContainer().getSPI(Module.class); return m != null ? m.getBoundEndpoints() : null; }
@Override public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException { T t = resolve(p); try { return MethodUtil.invoke(t, m, args ); } finally { postInvoke(p,t); } }
public Engine(String id) { this(id, ContainerResolver.getDefault().getContainer()); }
protected static ResourceInjector getResourceInjector(WSEndpoint endpoint) { ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class); if(ri==null) ri = ResourceInjector.STANDALONE; return ri; }
public F3SecurityServerTube(ServerTubelineAssemblyContext context, Tube nextTube) { super(context, nextTube); // override the default security environment with a Fabric3 system service secEnv = context.getEndpoint().getContainer().getSPI(SecurityEnvironment.class); }