Java Code Examples for org.apache.cxf.jaxrs.model.ClassResourceInfo#isCreatedFromModel()
The following examples show how to use
org.apache.cxf.jaxrs.model.ClassResourceInfo#isCreatedFromModel() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JAXRSServiceFactoryBean.java From cxf with Apache License 2.0 | 5 votes |
private ClassResourceInfo getCreatedFromModel(Class<?> realClass) { sendEvent(Event.CREATE_FROM_CLASS, realClass); for (ClassResourceInfo cri : classResourceInfos) { if (cri.isCreatedFromModel() && cri.isRoot() && cri.getServiceClass().isAssignableFrom(realClass)) { return cri; } } return null; }
Example 2
Source File: Java2WADLMojo.java From cxf with Apache License 2.0 | 5 votes |
private ClassResourceInfo getCreatedFromModel(Class<?> realClass) { for (ClassResourceInfo cri : classResourceInfos) { if (cri.isCreatedFromModel() && cri.isRoot() && cri.getServiceClass().isAssignableFrom(realClass)) { return cri; } } return null; }
Example 3
Source File: AbstractJAXRSFactoryBean.java From cxf with Apache License 2.0 | 4 votes |
protected boolean isValidClassResourceInfo(ClassResourceInfo cri) { Class<?> serviceCls = cri.getServiceClass(); return !(cri.isCreatedFromModel() && serviceCls == cri.getResourceClass() && !InjectionUtils.isConcreteClass(serviceCls)); }