Package de.codecentric.cxf.autodetection
Class WebServiceAutoDetector
- java.lang.Object
-
- de.codecentric.cxf.autodetection.WebServiceAutoDetector
-
@Component public class WebServiceAutoDetector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringNO_CLASS_FOUNDstatic java.lang.Class<javax.jws.WebService>SEI_ANNOTATIONstatic java.lang.Class<javax.xml.ws.WebServiceClient>WEB_SERVICE_CLIENT_ANNOTATION
-
Constructor Summary
Constructors Constructor Description WebServiceAutoDetector(WebServiceScanner webServiceScanner)
-
Method Summary
Modifier and Type Method Description <T> TsearchAndInstantiateSeiImplementation()Detects and instantiates the SEI-Implementation.protected <T> TsearchAndInstantiateSeiImplementation(java.lang.Class seiName)javax.xml.ws.ServicesearchAndInstantiateWebServiceClient()java.lang.ClasssearchServiceEndpointInterface()
-
-
-
Field Detail
-
NO_CLASS_FOUND
protected static final java.lang.String NO_CLASS_FOUND
- See Also:
- Constant Field Values
-
SEI_ANNOTATION
public static final java.lang.Class<javax.jws.WebService> SEI_ANNOTATION
-
WEB_SERVICE_CLIENT_ANNOTATION
public static final java.lang.Class<javax.xml.ws.WebServiceClient> WEB_SERVICE_CLIENT_ANNOTATION
-
-
Constructor Detail
-
WebServiceAutoDetector
public WebServiceAutoDetector(WebServiceScanner webServiceScanner) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
-
Method Detail
-
searchAndInstantiateSeiImplementation
public <T> T searchAndInstantiateSeiImplementation() throws BootStarterCxfExceptionDetects and instantiates the SEI-Implementation. Therefore it detects the SEI itself first.- Type Parameters:
T- returns the instantiated Service Endpoint Interface (SEI) implementation- Returns:
- returns the instantiated Service Endpoint Interface (SEI) implementation
- Throws:
BootStarterCxfException- if the the SEI or it's implementation class wasn't found
-
searchAndInstantiateSeiImplementation
protected <T> T searchAndInstantiateSeiImplementation(java.lang.Class seiName) throws BootStarterCxfException- Throws:
BootStarterCxfException
-
searchServiceEndpointInterface
public java.lang.Class searchServiceEndpointInterface() throws BootStarterCxfException- Throws:
BootStarterCxfException
-
searchAndInstantiateWebServiceClient
public javax.xml.ws.Service searchAndInstantiateWebServiceClient() throws BootStarterCxfException- Throws:
BootStarterCxfException
-
-