Property | Type | Description | |
---|---|---|---|
$servletContext | AppserverIo\Psr\Servlet\ServletContextInterface | The servlet context we want to parse the deployment descriptor for. |
Method | Description | |
---|---|---|
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | Returns the application context instance the servlet context is bound to. | |
getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface | Returns the servlet context instance. | |
injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void | Inject the servlet context instance. | |
parse ( ) : void | Parses the servlet context's web application base directory for servlets that has to be registered in the object manager. |
Method | Description | |
---|---|---|
parseDirectory ( string $directory ) : void | Parses the passed directory for classes and instances that has to be registered in the object manager. |
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | ||
return | AppserverIo\Psr\Application\ApplicationInterface | The application context instance |
public getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface | ||
return | AppserverIo\Psr\Servlet\ServletContextInterface | The servlet context instance |
public injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void | ||
$servletContext | AppserverIo\Psr\Servlet\ServletContextInterface | The servlet context instance |
return | void |
protected parseDirectory ( string $directory ) : void | ||
$directory | string | The directory to parse |
return | void |