com.gentics.api.portalnode.imp
Class AbstractGenticsImp
java.lang.Object
com.gentics.api.portalnode.imp.AbstractGenticsImp
- All Implemented Interfaces:
- GenticsImpInterface
public abstract class AbstractGenticsImp
- extends java.lang.Object
- implements GenticsImpInterface
Abstract implementation for imps.
This abstract class implements some common functions for imps.
Field Summary |
protected com.gentics.lib.log.NodeLogger |
logger
logger |
Method Summary |
java.lang.String |
getImpId()
get the id of the imp by which it has been initialized. |
void |
init(java.lang.String impId,
java.util.Map parameters)
initialize the imp with the parameters defined in the <parameters>
tag of the imp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected com.gentics.lib.log.NodeLogger logger
- logger
AbstractGenticsImp
protected AbstractGenticsImp()
getImpId
public java.lang.String getImpId()
- Description copied from interface:
GenticsImpInterface
- get the id of the imp by which it has been initialized.
- Specified by:
getImpId
in interface GenticsImpInterface
- Returns:
- the id if this configured imp.
init
public void init(java.lang.String impId,
java.util.Map parameters)
throws ImpException
- Description copied from interface:
GenticsImpInterface
- initialize the imp with the parameters defined in the <parameters>
tag of the imp. Init is called before any other parameters are set
and is called only once when the imp is created, not when the imp is reused.
- Specified by:
init
in interface GenticsImpInterface
- Parameters:
impId
- the configured id of the imp, must be returned by GenticsImpInterface.getImpId()
parameters
- configuration of the imp
- Throws:
ImpException
- if errors occured
Copyright © 2013 Gentics Software GmbH. All Rights Reserved.