pt.digitalis.dif.dem.managers.impl
Class ParameterManagerImpl

java.lang.Object
  extended by pt.digitalis.dif.dem.managers.impl.ParameterManagerImpl
All Implemented Interfaces:
IParameterManager

public class ParameterManagerImpl
extends Object
implements IParameterManager

Manages the DEM parameters, providing operations for access, pooling and persistence.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2007/06/01

Constructor Summary
ParameterManagerImpl()
           
 
Method Summary
 IParameter<?> getParameter(Entity entityType, String entityID, String parameterID)
          Return a parameter for the given entity
 IParameter<?> getParameterInstanceForType(String typeClassName)
          Returns an IParameter implementation for the given class
 ParameterList getParameters(Entity entityType, String entityID)
          Return the parameters for the given entity
 ParameterList getParameters(IApplication application)
          Gets the parameters of a given Application.
 ParameterList getParameters(IProvider provider)
          Gets the parameters of a given Provider.
 ParameterList getParameters(IService service)
          Gets the parameters of a given Service.
 ParameterList getParameters(IStage stage)
          Gets the parameters of a given Stage.
 boolean isParameterTypeSupported(String typeClassName)
          Checks if the given className is a supported parameter type
 void registerParameter(IParameter<?> parameter)
          Registers an entity parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterManagerImpl

public ParameterManagerImpl()
Method Detail

getParameter

public IParameter<?> getParameter(Entity entityType,
                                  String entityID,
                                  String parameterID)
Description copied from interface: IParameterManager
Return a parameter for the given entity

Specified by:
getParameter in interface IParameterManager
Parameters:
entityType - the type of the entity
entityID - the id of the entity
parameterID - the id of the parameter
Returns:
the parameter object if found
See Also:
IParameterManager.getParameter(pt.digitalis.dif.dem.Entity, java.lang.String, java.lang.String)

getParameterInstanceForType

public IParameter<?> getParameterInstanceForType(String typeClassName)
Description copied from interface: IParameterManager
Returns an IParameter implementation for the given class

Specified by:
getParameterInstanceForType in interface IParameterManager
Parameters:
typeClassName - the class name to check
Returns:
an instance of IParameter
See Also:
IParameterManager.getParameterInstanceForType(java.lang.String)

getParameters

public ParameterList getParameters(Entity entityType,
                                   String entityID)
Description copied from interface: IParameterManager
Return the parameters for the given entity

Specified by:
getParameters in interface IParameterManager
Parameters:
entityType - the type of the entity
entityID - the id of the entity
Returns:
the parameter list if found
See Also:
IParameterManager.getParameters(pt.digitalis.dif.dem.Entity, java.lang.String)

getParameters

public ParameterList getParameters(IApplication application)
Description copied from interface: IParameterManager
Gets the parameters of a given Application.

Specified by:
getParameters in interface IParameterManager
Parameters:
application - the application for which the parameters should be retrieved
Returns:
the application parameters
See Also:
IParameterManager.getParameters(pt.digitalis.dif.dem.interfaces.IApplication)

getParameters

public ParameterList getParameters(IProvider provider)
Description copied from interface: IParameterManager
Gets the parameters of a given Provider.

Specified by:
getParameters in interface IParameterManager
Parameters:
provider - the provider for which the parameters should be retrieved
Returns:
the provider parameters
See Also:
IParameterManager.getParameters(pt.digitalis.dif.dem.interfaces.IProvider)

getParameters

public ParameterList getParameters(IService service)
Description copied from interface: IParameterManager
Gets the parameters of a given Service.

Specified by:
getParameters in interface IParameterManager
Parameters:
service - the service for which the parameters should be retrieved
Returns:
the service parameters
See Also:
IParameterManager.getParameters(pt.digitalis.dif.dem.interfaces.IService)

getParameters

public ParameterList getParameters(IStage stage)
Description copied from interface: IParameterManager
Gets the parameters of a given Stage.

Specified by:
getParameters in interface IParameterManager
Parameters:
stage - the stage for which the parameters should be retrieved
Returns:
the stage parameters
See Also:
IParameterManager.getParameters(IStage)

isParameterTypeSupported

public boolean isParameterTypeSupported(String typeClassName)
Description copied from interface: IParameterManager
Checks if the given className is a supported parameter type

Specified by:
isParameterTypeSupported in interface IParameterManager
Parameters:
typeClassName - the class name to check
Returns:
T is the class is supported
See Also:
IParameterManager.isParameterTypeSupported(java.lang.String)

registerParameter

public void registerParameter(IParameter<?> parameter)
Description copied from interface: IParameterManager
Registers an entity parameter

Specified by:
registerParameter in interface IParameterManager
Parameters:
parameter - the parameter to register
See Also:
IParameterManager.registerParameter(pt.digitalis.dif.dem.objects.parameters.IParameter)


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.