org.gcube.smartgears.provider
Class DefaultProvider

java.lang.Object
  extended by org.gcube.smartgears.provider.DefaultProvider
All Implemented Interfaces:
Provider

public class DefaultProvider
extends Object
implements Provider

Default implementation of the Provider interface.

Author:
Fabio Simeoni

Constructor Summary
DefaultProvider()
           
 
Method Summary
 ContainerContext containerContext()
          Assembles and returns the context of the container.
 ContainerHandlers containerHandlers()
          Returns the handlers associated with the container.
 ApplicationContext contextFor(ContainerContext context, javax.servlet.ServletContext application)
          Assembles and returns the context of a given application.
 ApplicationExtensions extensionsFor(ApplicationContext context)
          Returns the API extensions associated with a given application.
 ApplicationHandlers handlersFor(ApplicationContext context)
          Returns the handlers associated with a given application.
 org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ApplicationContext context)
          Returns an implementation of the IS publisher for a given application
 org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ContainerContext context)
          Returns an implementation of the IS publisher for the container
 SmartGearsConfiguration smartgearsConfiguration()
          Returns the runtime properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProvider

public DefaultProvider()
Method Detail

containerContext

public ContainerContext containerContext()
Description copied from interface: Provider
Assembles and returns the context of the container.

Specified by:
containerContext in interface Provider
Returns:
the container's context

containerHandlers

public ContainerHandlers containerHandlers()
Description copied from interface: Provider
Returns the handlers associated with the container.

Specified by:
containerHandlers in interface Provider
Returns:
the handlers

contextFor

public ApplicationContext contextFor(ContainerContext context,
                                     javax.servlet.ServletContext application)
Description copied from interface: Provider
Assembles and returns the context of a given application.

Specified by:
contextFor in interface Provider
Parameters:
context - the context of the container
application - the servlet context of the application
Returns:

handlersFor

public ApplicationHandlers handlersFor(ApplicationContext context)
Description copied from interface: Provider
Returns the handlers associated with a given application.

Specified by:
handlersFor in interface Provider
Parameters:
context - the context of the application
Returns:
the handlers

extensionsFor

public ApplicationExtensions extensionsFor(ApplicationContext context)
Description copied from interface: Provider
Returns the API extensions associated with a given application.

Specified by:
extensionsFor in interface Provider
Parameters:
context - the context of the application
Returns:
the extensions

smartgearsConfiguration

public SmartGearsConfiguration smartgearsConfiguration()
Description copied from interface: Provider
Returns the runtime properties.

Specified by:
smartgearsConfiguration in interface Provider
Returns:
the properties.

publisherFor

public org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ContainerContext context)
Description copied from interface: Provider
Returns an implementation of the IS publisher for the container

Specified by:
publisherFor in interface Provider
Parameters:
context - the context of the container
Returns:
the publisher implementation

publisherFor

public org.gcube.informationsystem.publisher.ScopedPublisher publisherFor(ApplicationContext context)
Description copied from interface: Provider
Returns an implementation of the IS publisher for a given application

Specified by:
publisherFor in interface Provider
Parameters:
context - the context of the application
Returns:
the publisher implementation


Copyright © 2013. All Rights Reserved.