Package io.hekate.spring.bean.network
Class NetworkConnectorBean
- java.lang.Object
-
- io.hekate.spring.bean.HekateBaseBean<NetworkConnector<?>>
-
- io.hekate.spring.bean.network.NetworkConnectorBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<NetworkConnector<?>>
,org.springframework.beans.factory.InitializingBean
public class NetworkConnectorBean extends HekateBaseBean<NetworkConnector<?>> implements org.springframework.beans.factory.InitializingBean
ImportsNetworkConnector
into a Spring context.
-
-
Constructor Summary
Constructors Constructor Description NetworkConnectorBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
NetworkConnector<?>
getObject()
Class<NetworkConnector>
getObjectType()
String
getProtocol()
Returns the protocol name.void
setProtocol(String protocol)
Sets the protocol name.-
Methods inherited from class io.hekate.spring.bean.HekateBaseBean
getSource, isSingleton, setBeanFactory, setSource
-
-
-
-
Method Detail
-
getObject
public NetworkConnector<?> getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<NetworkConnector<?>>
- Throws:
Exception
-
getObjectType
public Class<NetworkConnector> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<NetworkConnector<?>>
-
getProtocol
public String getProtocol()
Returns the protocol name.- Returns:
- Protocol name.
-
setProtocol
public void setProtocol(String protocol)
Sets the protocol name.- Parameters:
protocol
- Protocol name.- See Also:
NetworkConnectorConfig.setProtocol(String)
-
-