Klasse BaseServiceImpl

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.baseservice.BaseServiceImpl
Alle implementierten Schnittstellen:
org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.configuration.Reconfigurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.service.Serviceable, BaseService

public abstract class BaseServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements BaseService
Base class for a service implementation capturing the Avalon serviceConfiguration artifacts. Take care that using this class introduces a dependency to the YAAFI library.
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • BaseServiceImpl

      public BaseServiceImpl()
      Constructor
  • Methodendetails

    • contextualize

      public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
      Angegeben von:
      contextualize in Schnittstelle org.apache.avalon.framework.context.Contextualizable
      Löst aus:
      org.apache.avalon.framework.context.ContextException
      Siehe auch:
      • Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
    • service

      public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
      Angegeben von:
      service in Schnittstelle org.apache.avalon.framework.service.Serviceable
      Löst aus:
      org.apache.avalon.framework.service.ServiceException
      Siehe auch:
      • Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
    • configure

      public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      configure in Schnittstelle org.apache.avalon.framework.configuration.Configurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
    • parameterize

      public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException
      Angegeben von:
      parameterize in Schnittstelle org.apache.avalon.framework.parameters.Parameterizable
      Löst aus:
      org.apache.avalon.framework.parameters.ParameterException
      Siehe auch:
      • Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
    • reconfigure

      public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      reconfigure in Schnittstelle org.apache.avalon.framework.configuration.Reconfigurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
    • dispose

      public void dispose()
      Angegeben von:
      dispose in Schnittstelle org.apache.avalon.framework.activity.Disposable
      Siehe auch:
      • Disposable.dispose()
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Siehe auch:
    • hasService

      protected boolean hasService(String key)
      Parameter:
      key - name of the service to test for
      Gibt zurück:
      boolean indicator if the service exists
      Siehe auch:
      • ServiceManager.hasService(java.lang.String)
    • lookup

      protected Object lookup(String key)
      Parameter:
      key - name of service to lookup from the service manager
      Gibt zurück:
      reference to the service
      Siehe auch:
      • ServiceManager.lookup(java.lang.String)
    • release

      protected void release(Object object)
      Parameter:
      object - service to release
      Siehe auch:
      • ServiceManager.release(java.lang.Object)
    • createAbsoluteFile

      protected File createAbsoluteFile(String fileName)
      Determines the absolute file based on the application directory
      Parameter:
      fileName - the filename
      Gibt zurück:
      the absolute file
    • createAbsolutePath

      protected String createAbsolutePath(String fileName)
      Determines the absolute path based on the application directory
      Parameter:
      fileName - the filename
      Gibt zurück:
      the absolute path
    • getServiceApplicationDir

      protected File getServiceApplicationDir()
      Gibt zurück:
      Returns the serviceApplicationDir.
    • getServiceClassLoader

      protected ClassLoader getServiceClassLoader()
      Gibt zurück:
      Returns the serviceClassLoader.
    • getServiceConfiguration

      protected org.apache.avalon.framework.configuration.Configuration getServiceConfiguration()
      Gibt zurück:
      Returns the serviceConfiguration.
    • getServiceContext

      protected org.apache.avalon.framework.context.Context getServiceContext()
      Gibt zurück:
      Returns the serviceContext.
    • getServiceManager

      protected org.apache.avalon.framework.service.ServiceManager getServiceManager()
      Gibt zurück:
      Returns the serviceManager.
    • getServiceName

      protected String getServiceName()
      Gibt zurück:
      Returns the serviceName.
    • getServiceParameters

      protected org.apache.avalon.framework.parameters.Parameters getServiceParameters()
      Gibt zurück:
      Returns the serviceParameters.
    • getServicePartitionName

      protected String getServicePartitionName()
      Gibt zurück:
      Returns the servicePartitionName.
    • getServiceTempDir

      protected File getServiceTempDir()
      Gibt zurück:
      Returns the serviceTempDir.