com.aspose.html

Class Configuration

  • java.lang.Object
    • com.aspose.html.Configuration
    • Constructor Summary

      Constructors 
      Constructor and Description
      Configuration()
      Initializes a new instance of the Configuration class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      <TService extends IService>
      void
      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>
      TService
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Configuration

        public Configuration()

        Initializes a new instance of the Configuration class.

    • Method Detail

      • getContainer

        public com.aspose.html.services.ServiceContainer getContainer()
      • getSecurity

        public final int getSecurity()

        Gets the sandboxing flag of the configuration.

        Value: The security.
        Returns:
        the sandboxing flag of the configuration.
      • setSecurity

        public final void setSecurity(int value)

        Sets the sandboxing flag of the configuration.

        Value: The security.
        Parameters:
        value - the sandboxing flag of the configuration.
      • getService

        public <TService extends IService> TService getService(java.lang.Class<TService> clazz)

        Gets the requested service.

        Specified by:
        getService in interface IServiceProvider
        Returns:
        An instance of the service if it could be found, or if it could not be found

        TService: The type of service to retrieve.

        Value: null
      • addService

        public <TService extends IService> void addService(TService service,
                                                           java.lang.Class<TService> clazz)

        Adds the specified service to the configuration.

        Specified by:
        addService in interface IServiceContainer
        Parameters:
        service - An instance of the service to add.

        TService: The type of service to add.

      • initializeServices

        protected void initializeServices()

        Initializes the services.

      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable