/** * Returns true if deployment represents JAXWS JSE deployment. * * @param dep webservice deployment * @return true if JAXWS JSE deployment, false otherwise */ public static boolean isJaxwsJseDeployment( final Deployment dep ) { return dep.getService().getEndpoints( JAXWS_JSE_ENDPOINT_FILTER ).size() > 0; }
/** * Returns true if deployment represents JAXWS EJB deployment. * * @param dep webservice deployment * @return true if JAXWS EJB deployment, false otherwise */ public static boolean isJaxwsEjbDeployment( final Deployment dep ) { return dep.getService().getEndpoints( JAXWS_EJB_ENDPOINT_FILTER ).size() > 0; }
public void stop(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { ep.setRecordProcessors(Collections.<RecordProcessor>emptyList()); } }
public void stop(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { ep.setRecordProcessors(Collections.<RecordProcessor>emptyList()); } }
private String getRealmName(final Deployment dep) { for (final Endpoint ejbEndpoint : dep.getService().getEndpoints()) { final String realmName = ejb3SecurityAccessor.getRealmName(ejbEndpoint); final boolean hasRealmName = realmName != null; if (hasRealmName) { return realmName; } } return null; }
@Override public void start(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { setInjectionAwareInstanceProvider(ep); } }
private String getRealmName(final Deployment dep) { for (final Endpoint ejbEndpoint : dep.getService().getEndpoints()) { final String realmName = ejb3SecurityAccessor.getRealmName(ejbEndpoint); final boolean hasRealmName = realmName != null; if (hasRealmName) { return realmName; } } return null; }
@Override public void start(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { setInjectionAwareInstanceProvider(ep); } }
@Override public void stop(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { ep.setInstanceProvider(null); } }
static List<ServiceName> getServiceNamesFromDeploymentUnit(final DeploymentUnit unit) { final List<ServiceName> endpointServiceNames = new ArrayList<>(); Deployment deployment = unit.getAttachment(WSAttachmentKeys.DEPLOYMENT_KEY); for (Endpoint ep : deployment.getService().getEndpoints()) { endpointServiceNames.add(EndpointService.getServiceName(unit, ep.getShortName())); } return endpointServiceNames; }
@Override public void stop(Deployment dep) { for (Endpoint ep : dep.getService().getEndpoints()) { List<RecordProcessor> processors = ep.getRecordProcessors(); for (RecordProcessor processor : processors) { this.unregisterRecordProcessor(processor, ep); } } }
@Override public void stop(Deployment dep) { for (Endpoint ep : dep.getService().getEndpoints()) { List<RecordProcessor> processors = ep.getRecordProcessors(); for (RecordProcessor processor : processors) { this.unregisterRecordProcessor(processor, ep); } } }
@Override public void start(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { ep.setInvocationHandler(new InvocationHandlerJAXWS()); } } }
@Override public void start(Deployment dep) { for (Endpoint ep : dep.getService().getEndpoints()) { getLifecycleHandler(ep, true).start(ep); } }
@Override public void start(final Deployment dep) { final ServiceTarget target = getOptionalAttachment(dep, ServiceTarget.class); final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class); for (final Endpoint ep : dep.getService().getEndpoints()) { EndpointService.install(target, ep, unit); } }
@Override public void start(final Deployment dep) { final ServiceTarget target = getOptionalAttachment(dep, ServiceTarget.class); final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class); for (final Endpoint ep : dep.getService().getEndpoints()) { EndpointService.install(target, ep, unit); } }
@Override public void start(Deployment dep) { SPIProvider provider = SPIProviderResolver.getInstance().getProvider(); EndpointMetricsFactory factory = provider.getSPI(EndpointMetricsFactory.class); for (Endpoint ep : dep.getService().getEndpoints()) { EndpointMetrics metrics = factory.newEndpointMetrics(); ep.setEndpointMetrics(metrics); } } }
@Override public void start(final Deployment dep) { for (final Endpoint ep : dep.getService().getEndpoints()) { final Object serviceBean = ep.getAttachment(Object.class); org.apache.cxf.endpoint.Endpoint cxfEp = ep.getAttachment(org.apache.cxf.endpoint.Endpoint.class); ep.setInstanceProvider(new CXFInstanceProvider(serviceBean, cxfEp)); } setUserEndpointBus(dep); }
@Override public void start(final Deployment dep) { final ServiceTarget target = getOptionalAttachment(dep, ServiceTarget.class); final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class); for (final Endpoint ep : dep.getService().getEndpoints()) { EndpointService.install(target, ep, unit); getLifecycleHandler(ep, true).start(ep); } }
@Override public void start(final Deployment dep) { final ClassLoader loader = dep.getRuntimeClassLoader(); final ClassLoader integrationCL = ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader(); final ClassLoader newCL = new DelegateClassLoader(integrationCL, loader); for (final Endpoint ep : dep.getService().getEndpoints()) { ep.setInstanceProvider(new NativeInstanceProvider(newCL)); } }