本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getService()
方法的一些代码示例,展示了Endpoint.getService()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getService()
方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称:Endpoint
方法名:getService
[英]Get the service this endpoint belongs to
[中]获取此终结点所属的服务
代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration
private boolean hasWebservicesMD(final Endpoint endpoint) {
final Deployment dep = endpoint.getService().getDeployment();
return dep.getAttachment(WebservicesMetaData.class) != null;
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
public static void undoPublishStep(WebHost host, Context wsctx) throws Exception {
List<Endpoint> eps = wsctx.getEndpoints();
if (eps == null || eps.isEmpty()) {
return;
}
EndpointPublisherImpl publisher = new EndpointPublisherImpl(host, true);
publisher.stopWebApp(eps.get(0).getService().getDeployment());
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
public static void undoPublishStep(WebHost host, Context wsctx) throws Exception {
List<Endpoint> eps = wsctx.getEndpoints();
if (eps == null || eps.isEmpty()) {
return;
}
EndpointPublisherImpl publisher = new EndpointPublisherImpl(host, true);
publisher.stopWebApp(eps.get(0).getService().getDeployment());
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
@Override
public void destroy(Context context) throws Exception {
List<Endpoint> eps = context.getEndpoints();
if (eps == null || eps.isEmpty()) {
return;
}
Deployment dep = eps.get(0).getService().getDeployment();
try {
stopWebApp(dep);
} finally {
undeploy(dep);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
@Override
public void destroy(Context context) throws Exception {
List<Endpoint> eps = context.getEndpoints();
if (eps == null || eps.isEmpty()) {
return;
}
Deployment dep = eps.get(0).getService().getDeployment();
try {
stopWebApp(dep);
} finally {
undeploy(dep);
}
}
代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration
private static String getDeploymentSecurityDomainName(final Endpoint ep) {
JBossWebMetaData metadata = ep.getService().getDeployment().getAttachment(JBossWebMetaData.class);
String metaDataSecurityDomain = metadata != null ? metadata.getSecurityDomain() : null;
return metaDataSecurityDomain == null ? SecurityConstants.DEFAULT_APPLICATION_POLICY
: SecurityUtil.unprefixSecurityDomain(metaDataSecurityDomain.trim());
}
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
/**
* Sets runtime classloader for JSE endpoints
*/
private void setRuntimeLoader()
{
final Deployment dep = endpoint.getService().getDeployment();
if (isJseDeployment(dep))
{
ClassLoader classLoader = getContextClassLoader();
dep.setRuntimeClassLoader(classLoader);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
private void setInjectionAwareInstanceProvider(final Endpoint ep) {
final InstanceProvider stackInstanceProvider = ep.getInstanceProvider();
final DeploymentUnit unit = ep.getService().getDeployment().getAttachment(DeploymentUnit.class);
final InstanceProvider injectionAwareInstanceProvider = new InjectionAwareInstanceProvider(stackInstanceProvider, ep, unit);
ep.setInstanceProvider(injectionAwareInstanceProvider);
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
private static String getDeploymentSecurityDomainName(final Endpoint ep, final DeploymentUnit unit) {
JBossWebMetaData metadata = ep.getService().getDeployment().getAttachment(JBossWebMetaData.class);
String metaDataSecurityDomain = metadata != null ? metadata.getSecurityDomain() : null;
if (metaDataSecurityDomain == null) {
if (unit.hasAttachment(UndertowAttachments.DEFAULT_SECURITY_DOMAIN)) {
metaDataSecurityDomain = unit.getAttachment(UndertowAttachments.DEFAULT_SECURITY_DOMAIN);
} else {
metaDataSecurityDomain = SecurityConstants.DEFAULT_APPLICATION_POLICY;
}
} else {
metaDataSecurityDomain = SecurityUtil.unprefixSecurityDomain(metaDataSecurityDomain.trim());
}
return metaDataSecurityDomain;
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
private static String getDeploymentSecurityDomainName(final Endpoint ep, final DeploymentUnit unit) {
JBossWebMetaData metadata = ep.getService().getDeployment().getAttachment(JBossWebMetaData.class);
String metaDataSecurityDomain = metadata != null ? metadata.getSecurityDomain() : null;
if (metaDataSecurityDomain == null) {
if (unit.hasAttachment(UndertowAttachments.DEFAULT_SECURITY_DOMAIN)) {
metaDataSecurityDomain = unit.getAttachment(UndertowAttachments.DEFAULT_SECURITY_DOMAIN);
} else {
metaDataSecurityDomain = SecurityConstants.DEFAULT_APPLICATION_POLICY;
}
} else {
metaDataSecurityDomain = SecurityUtil.unprefixSecurityDomain(metaDataSecurityDomain.trim());
}
return metaDataSecurityDomain;
}
代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration
private void setInjectionAwareInstanceProvider(final Endpoint ep) {
final InstanceProvider stackInstanceProvider = ep.getInstanceProvider();
final DeploymentUnit unit = ep.getService().getDeployment().getAttachment(DeploymentUnit.class);
final InstanceProvider injectionAwareInstanceProvider = new InjectionAwareInstanceProvider(stackInstanceProvider, ep, unit);
ep.setInstanceProvider(injectionAwareInstanceProvider);
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
/**
* Gets EJB security meta data if associated with EJB endpoint.
*
* @param endpoint EJB webservice endpoint
* @return EJB security meta data or null
*/
private EJBSecurityMetaData getEjbSecurityMetaData(final Endpoint endpoint) {
final String ejbName = endpoint.getShortName();
final Deployment dep = endpoint.getService().getDeployment();
final EJBArchiveMetaData ejbArchiveMD = WSHelper.getOptionalAttachment(dep, EJBArchiveMetaData.class);
final EJBMetaData ejbMD = ejbArchiveMD != null ? ejbArchiveMD.getBeanByEjbName(ejbName) : null;
return ejbMD != null ? ejbMD.getSecurityMetaData() : null;
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
private void setInjectionAwareInstanceProvider(final Endpoint ep) {
final InstanceProvider stackInstanceProvider = ep.getInstanceProvider();
final DeploymentUnit unit = ep.getService().getDeployment().getAttachment(DeploymentUnit.class);
final InstanceProvider injectionAwareInstanceProvider = new InjectionAwareInstanceProvider(stackInstanceProvider, ep, unit);
ep.setInstanceProvider(injectionAwareInstanceProvider);
}
代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-server
private void updateAvailableBusWithServletInfo(ServletConfig servletConfig)
{
BusHolder holder = endpoint.getService().getDeployment().getAttachment(BusHolder.class);
//set the bus from deployment into the CXF servlet and assign it to the current thread (do not touch the default bus!)
bus = holder.getBus();
BusFactory.setThreadDefaultBus(bus);
//update the resource manager adding the ServletContextResourceResolver that was to be added by CXF servlet
ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
resourceManager.addResourceResolver(new ServletContextResourceResolver(servletConfig.getServletContext()));
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
/**
* Gets EJB security meta data if associated with EJB endpoint.
*
* @param endpoint EJB webservice endpoint
* @return EJB security meta data or null
*/
private EJBSecurityMetaData getEjbSecurityMetaData(final Endpoint endpoint) {
final String ejbName = endpoint.getShortName();
final Deployment dep = endpoint.getService().getDeployment();
final EJBArchiveMetaData ejbArchiveMD = WSHelper.getOptionalAttachment(dep, EJBArchiveMetaData.class);
final EJBMetaData ejbMD = ejbArchiveMD != null ? ejbArchiveMD.getBeanByEjbName(ejbName) : null;
return ejbMD != null ? ejbMD.getSecurityMetaData() : null;
}
代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration
/**
* Gets EJB security meta data if associated with EJB endpoint.
*
* @param endpoint EJB webservice endpoint
* @return EJB security meta data or null
*/
private EJBSecurityMetaData getEjbSecurityMetaData(final Endpoint endpoint) {
final String ejbName = endpoint.getShortName();
final Deployment dep = endpoint.getService().getDeployment();
final EJBArchiveMetaData ejbArchiveMD = WSHelper.getOptionalAttachment(dep, EJBArchiveMetaData.class);
final EJBMetaData ejbMD = ejbArchiveMD != null ? ejbArchiveMD.getBeanByEjbName(ejbName) : null;
return ejbMD != null ? ejbMD.getSecurityMetaData() : null;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss423
public void init(Endpoint ep)
{
String ejbName = ep.getShortName();
ArchiveDeployment dep = (ArchiveDeployment)ep.getService().getDeployment();
String nameStr = "jboss.j2ee:name=" + ejbName + ",service=EJB3,jar=" + dep.getSimpleName();
if (dep.getParent() != null)
{
nameStr += ",ear=" + dep.getParent().getSimpleName();
}
objectName = ObjectNameFactory.create(nameStr.toString());
Dispatcher dispatcher = Dispatcher.singleton;
if (dispatcher.getRegistered(objectName.getCanonicalName()) == null)
throw new WebServiceException("Cannot find service endpoint target: " + objectName);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* Gets EJB security meta data if associated with EJB endpoint.
*
* @param endpoint EJB webservice endpoint
* @return EJB security meta data or null
*/
private EJBSecurityMetaData getEjbSecurityMetaData(final Endpoint endpoint)
{
final String ejbName = endpoint.getShortName();
final Deployment dep = endpoint.getService().getDeployment();
final EJBArchiveMetaData ejbArchiveMD = WSHelper.getOptionalAttachment(dep, EJBArchiveMetaData.class);
final EJBMetaData ejbMD = ejbArchiveMD != null ? ejbArchiveMD.getBeanByEjbName(ejbName) : null;
return ejbMD != null ? ejbMD.getSecurityMetaData() : null;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss500Beta4
public void init(Endpoint ep)
{
String ejbName = ep.getShortName();
ArchiveDeployment dep = (ArchiveDeployment)ep.getService().getDeployment();
String nameStr = "jboss.j2ee:name=" + ejbName + ",service=EJB3,jar=" + dep.getSimpleName();
if (dep.getParent() != null)
{
nameStr += ",ear=" + dep.getParent().getSimpleName();
}
objectName = ObjectNameFactory.create(nameStr.toString());
Dispatcher dispatcher = Dispatcher.singleton;
if (dispatcher.getRegistered(objectName.getCanonicalName()) == null)
throw new WebServiceException("Cannot find service endpoint target: " + objectName);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss421
public void init(Endpoint ep)
{
String ejbName = ep.getShortName();
ArchiveDeployment dep = (ArchiveDeployment)ep.getService().getDeployment();
String nameStr = "jboss.j2ee:name=" + ejbName + ",service=EJB3,jar=" + dep.getSimpleName();
if (dep.getParent() != null)
{
nameStr += ",ear=" + dep.getParent().getSimpleName();
}
objectName = ObjectNameFactory.create(nameStr.toString());
Dispatcher dispatcher = Dispatcher.singleton;
if (dispatcher.getRegistered(objectName.getCanonicalName()) == null)
throw new WebServiceException("Cannot find service endpoint target: " + objectName);
}
内容来源于网络,如有侵权,请联系作者删除!