public class Configuration extends java.lang.Object implements IServiceProvider, IServiceContainer
Represents context configuration for Aspose.Html library.
Constructor and Description |
---|
Configuration()
Initializes a new instance of the
Configuration class. |
Modifier and Type | Method and Description |
---|---|
<TService extends IService> |
addService(TService service,
java.lang.Class<TService> clazz)
Adds the specified service to the configuration.
|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
com.aspose.html.services.ServiceContainer |
getContainer() |
int |
getSecurity()
Gets the sandboxing flag of the configuration.
|
<TService extends IService> |
getService(java.lang.Class<TService> clazz)
Gets the requested service.
|
protected void |
initializeServices()
Initializes the services.
|
void |
setSecurity(int value)
Sets the sandboxing flag of the configuration.
|
public Configuration()
Initializes a new instance of the Configuration
class.
public com.aspose.html.services.ServiceContainer getContainer()
public final int getSecurity()
Gets the sandboxing flag of the configuration.
Value: The security.public final void setSecurity(int value)
Sets the sandboxing flag of the configuration.
Value: The security.value
- the sandboxing flag of the configuration.public <TService extends IService> TService getService(java.lang.Class<TService> clazz)
Gets the requested service.
getService
in interface IServiceProvider
TService
: The type of service to retrieve.
public <TService extends IService> void addService(TService service, java.lang.Class<TService> clazz)
Adds the specified service to the configuration.
addService
in interface IServiceContainer
service
- An instance of the service to add.
TService
: The type of service to add.
protected void initializeServices()
Initializes the services.
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable