|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.NuggetService
public abstract class NuggetService
NuggetService is the NiMKernel module responsible for instantiating Nuggets.
Field Summary | |
---|---|
protected NuggetVisa |
_nuggetVisa
Reference to the nugget visa object necessary to instantiate a Nugget. |
Constructor Summary | |
---|---|
NuggetService(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new NuggetService |
Method Summary | |
---|---|
abstract Nugget |
createNugget(Entity entity,
java.lang.String nuggetName)
This method is used to load and instantiate a Nugget of the given nuggetName. |
abstract Nugget |
createNugget(Entity entity,
java.lang.String nuggetName,
java.lang.String nuggetType,
java.util.Hashtable settings)
This method is used to load and instantiate a Nugget of the given type and for the given entity. |
protected abstract void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NuggetVisa _nuggetVisa
Constructor Detail |
---|
public NuggetService(NiMKernelServiceVisa visa)
visa
- Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.Method Detail |
---|
protected abstract void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
NiMKernelService
init
in class NiMKernelService
kernel
- Reference to the NiMKernel object that instantiated the
service.confService
- A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException
- If unable to initialize the kernel service.
NiMException
- If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.public abstract Nugget createNugget(Entity entity, java.lang.String nuggetName, java.lang.String nuggetType, java.util.Hashtable settings) throws InvalidSettingException, PermissionDeniedException, InitializationFailedException
entity
- Reference to the entity object that calls this method.nuggetName
- The name to be associated to the new nugget instance.nuggetType
- The type of the nugget to be created. This parameter is
used to match with the nugget description on the
configuration service for the nugget.settings
- Reference to the settings used to initialize the Nugget.
PermissionDeniedException
- If the given credential is not entitled to create the nugget.
InitializationFailedException
- If unable to initialize the nugget with the given settings.
InvalidSettingException
- If the setting contains invalid information. This exception
is usually caused by invalid nuggetType or settings
parameters. It can also be the result of configuration
problems for this nugget.public abstract Nugget createNugget(Entity entity, java.lang.String nuggetName) throws NuggetNotAvailableException, InvalidSettingException, PermissionDeniedException, InitializationFailedException
This method will determine the nugget type and settings from the ConfigurationService. If it cannot locate the information for the specified nuggetName, a NuggetNotAvailableException must be thrown by the service implementation.
entity
- Reference to the entity object that calls this method.nuggetName
- The name to be associated to the new nugget instance.
NuggetNotAvailableException
- If the NuggetService cannot retrieve the required information
from the configuration service to instantiate the nugget.
PermissionDeniedException
- If the given credential is not entitled to create the nugget.
InitializationFailedException
- If unable to initialize the nugget with the given settings.
InvalidSettingException
- If the setting contains invalid information. This exception
is usually caused by invalid nuggetType or settings
parameters. It can also be the result of configuration
problems for this nugget.
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.