Package org.xipki.ca.api.publisher
Class CertPublisherFactoryRegister
- java.lang.Object
-
- org.xipki.ca.api.publisher.CertPublisherFactoryRegister
-
public class CertPublisherFactoryRegister extends Object
Register of CertPublisherFacotries.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CertPublisherFactoryRegister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindService(CertPublisherFactory service)booleancanCreatePublisher(String type)Whether publisher of given type can be created.Set<String>getSupportedTypes()Retrieves the types of supported publishers.CertPublishernewPublisher(String type)Create new publisher of given type.voidregistFactory(CertPublisherFactory factory)voidunbindService(CertPublisherFactory service)voidunregistFactory(CertPublisherFactory factory)
-
-
-
Method Detail
-
canCreatePublisher
public boolean canCreatePublisher(String type)
Whether publisher of given type can be created.- Parameters:
type- Type of the publisher. Must not benull.- Returns:
- whether publisher of this type can be created.
-
newPublisher
public CertPublisher newPublisher(String type) throws org.xipki.util.exception.ObjectCreationException
Create new publisher of given type.- Parameters:
type- Type of the publisher. Must not benull.- Returns:
- new publisher.
- Throws:
org.xipki.util.exception.ObjectCreationException- if publisher could not be created.
-
getSupportedTypes
public Set<String> getSupportedTypes()
Retrieves the types of supported publishers.- Returns:
- lower-case types of supported publishers, never
null.
-
bindService
public void bindService(CertPublisherFactory service)
-
registFactory
public void registFactory(CertPublisherFactory factory)
-
unbindService
public void unbindService(CertPublisherFactory service)
-
unregistFactory
public void unregistFactory(CertPublisherFactory factory)
-
-