Package org.apache.sshd.common
Interface ServiceFactory
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
AbstractUserAuthServiceFactory
,ClientConnectionServiceFactory
,ClientUserAuthServiceFactory
,ServerConnectionServiceFactory
,ServerUserAuthServiceFactory
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Method Summary
Modifier and TypeMethodDescriptionstatic Service
create
(Collection<? extends ServiceFactory> factories, String name, Session session) Create an instance of the specified name by looking up the needed factory in the list (case insensitive.Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
Method Details
-
create
- Throws:
IOException
-
create
static Service create(Collection<? extends ServiceFactory> factories, String name, Session session) throws IOException Create an instance of the specified name by looking up the needed factory in the list (case insensitive.- Parameters:
factories
- list of available factoriesname
- the factory name to usesession
- the referencedSession
- Returns:
- a newly created object or
null
if the factory is not in the list - Throws:
IOException
- if session creation failed- See Also:
-