org.gcube.smartgears.provider
Interface Provider

All Known Implementing Classes:
DefaultProvider

public interface Provider

Provides dependencies for container and application management.

Author:
Fabio Simeoni

Method Summary
 ContainerContext containerContext()
          Assembles and returns the context of the container.
 ContainerHandlers containerHandlers()
          Returns the handlers associated with the container.
 ApplicationContext contextFor(ContainerContext container, javax.servlet.ServletContext application)
          Assembles and returns the context of a given application.
 ApplicationExtensions extensionsFor(ApplicationContext application)
          Returns the API extensions associated with a given application.
 ApplicationHandlers handlersFor(ApplicationContext application)
          Returns the handlers associated with a given application.
 org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ApplicationContext application)
          Returns an implementation of the IS publisher for a given application
 org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ContainerContext application)
          Returns an implementation of the IS publisher for the container
 SmartGearsConfiguration smartgearsConfiguration()
          Returns the runtime properties.
 

Method Detail

smartgearsConfiguration

SmartGearsConfiguration smartgearsConfiguration()
Returns the runtime properties.

Returns:
the properties.

containerContext

ContainerContext containerContext()
Assembles and returns the context of the container.

Returns:
the container's context

containerHandlers

ContainerHandlers containerHandlers()
Returns the handlers associated with the container.

Returns:
the handlers

publisherFor

org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ContainerContext application)
Returns an implementation of the IS publisher for the container

Parameters:
application - the context of the container
Returns:
the publisher implementation

contextFor

ApplicationContext contextFor(ContainerContext container,
                              javax.servlet.ServletContext application)
Assembles and returns the context of a given application.

Parameters:
container - the context of the container
application - the servlet context of the application
Returns:

handlersFor

ApplicationHandlers handlersFor(ApplicationContext application)
Returns the handlers associated with a given application.

Parameters:
application - the context of the application
Returns:
the handlers

extensionsFor

ApplicationExtensions extensionsFor(ApplicationContext application)
Returns the API extensions associated with a given application.

Parameters:
application - the context of the application
Returns:
the extensions

publisherFor

org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ApplicationContext application)
Returns an implementation of the IS publisher for a given application

Parameters:
application - the context of the application
Returns:
the publisher implementation


Copyright © 2013. All Rights Reserved.