org.openmdx.compatibility.base.application.spi
Class AbstractApplicationContext_1

java.lang.Object
  extended by org.openmdx.compatibility.base.application.spi.AbstractApplicationContext_1
All Implemented Interfaces:
ApplicationContext_1_0, Manageable_1_0
Direct Known Subclasses:
ApplicationServerManager_1

public abstract class AbstractApplicationContext_1
extends Object
implements ApplicationContext_1_0, Manageable_1_0

The Application Context Singleton Holder


Constructor Summary
protected AbstractApplicationContext_1()
          Constructor
 
Method Summary
 void activate()
          The activate method initializes a layer or component.
 void deactivate()
          The deactivate method releases a layer or component.
static AbstractApplicationContext_1 getInstance()
          Get the most recently created AbstractApplicationContext_1 instance
static boolean hasInstance()
          Tells whether an AbstractApplicationContext_1 has been created
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.compatibility.base.application.cci.ApplicationContext_1_0
getContainerId, getDomainName
 

Constructor Detail

AbstractApplicationContext_1

protected AbstractApplicationContext_1()
Constructor

Remembers and registers the last created AbstractApplicationContext_1 instance.

Method Detail

getInstance

public static AbstractApplicationContext_1 getInstance()
Get the most recently created AbstractApplicationContext_1 instance

Returns:
the most recently created AbstractApplicationContext_1 instance

hasInstance

public static boolean hasInstance()
Tells whether an AbstractApplicationContext_1 has been created

Returns:
true if an AbstractApplicationContext_1 has been created

activate

public void activate()
              throws Exception,
                     ServiceException
The activate method initializes a layer or component.

An activate() implementation of a subclass should be of the form:

   {
     super.activate();
     «local activation code»
   }
 

Specified by:
activate in interface Manageable_1_0
Throws:
Exception - the application framwork maps all java Exceptions internally to standard ServiceExceptions.
ServiceException

deactivate

public void deactivate()
                throws Exception,
                       ServiceException
The deactivate method releases a layer or component.

A deactivate() implementation of a subclass should be of the form: of the form:

   {
     «local deactivation code»
     super.deactivate();
   }
 

Specified by:
deactivate in interface Manageable_1_0
Throws:
Exception - the application framwork maps all java Exceptions internally to standard ServiceExceptions.
ServiceException

toString

public String toString()
Overrides:
toString in class Object


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.