net.larsan.urd.impl
Interface Parameters

All Known Implementing Classes:
ParameterDispatcher

public interface Parameters

A very simple interface the servicebox can use to dynamicly load init parameters for it's service and query the configuration in general.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 InitParameters getParameters(java.net.URL codebase)
          Get init parameters for a service loaded from URL codebase.
 boolean isAutoStart(java.net.URL codebase)
          Check is a service from a codebase is marked as an auto-start service.
 

Method Detail

getParameters

public InitParameters getParameters(java.net.URL codebase)
                             throws NotConfiguredException
Get init parameters for a service loaded from URL codebase. Return an empty InitParameters object if no parameters are found.

Parameters:
codebase - Service to find parameters for
Returns:
Init parameters for the service, never null
Throws:
NotConfiguredException - If the source is not configured.

isAutoStart

public boolean isAutoStart(java.net.URL codebase)
                    throws NotConfiguredException
Check is a service from a codebase is marked as an auto-start service.

Parameters:
codebase - Service to check
Returns:
true If the service should be auto-started
Throws:
NotConfiguredException - If the source is not configured.