Package org.apache.sshd.common
Interface ServiceFactory
-
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
AbstractUserAuthServiceFactory
,ClientConnectionServiceFactory
,ClientUserAuthServiceFactory
,ServerConnectionServiceFactory
,ServerUserAuthServiceFactory
public interface ServiceFactory extends NamedResource
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static 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.Service
create(Session session)
-
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
-
-
-
Method Detail
-
create
Service create(Session session) throws IOException
- 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:
create(Session)
-
-