Package de.codecentric.cxf.autodetection
Class WebServiceAutoDetector
- java.lang.Object
-
- de.codecentric.cxf.autodetection.WebServiceAutoDetector
-
@Component public class WebServiceAutoDetector extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringNO_CLASS_FOUNDstatic Class<WebService>SEI_ANNOTATIONstatic Class<WebServiceClient>WEB_SERVICE_CLIENT_ANNOTATION
-
Constructor Summary
Constructors Constructor Description WebServiceAutoDetector(WebServiceScanner webServiceScanner, org.springframework.context.ApplicationContext applicationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TsearchAndInstantiateSeiImplementation()Detects and instantiates the SEI-Implementation.protected <T> TsearchAndInstantiateSeiImplementation(Class seiName)ServicesearchAndInstantiateWebServiceClient()ClasssearchServiceEndpointInterface()
-
-
-
Field Detail
-
NO_CLASS_FOUND
protected static final String NO_CLASS_FOUND
- See Also:
- Constant Field Values
-
SEI_ANNOTATION
public static final Class<WebService> SEI_ANNOTATION
-
WEB_SERVICE_CLIENT_ANNOTATION
public static final Class<WebServiceClient> WEB_SERVICE_CLIENT_ANNOTATION
-
-
Constructor Detail
-
WebServiceAutoDetector
public WebServiceAutoDetector(WebServiceScanner webServiceScanner, org.springframework.context.ApplicationContext applicationContext) 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(Class seiName) throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
searchServiceEndpointInterface
public Class searchServiceEndpointInterface() throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
searchAndInstantiateWebServiceClient
public Service searchAndInstantiateWebServiceClient() throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
-