|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.activation.appliance.impl.AbstractAppliance
org.apache.avalon.activation.appliance.impl.DefaultAppliance
DefaultAppliance is the default implementation of a local appliance instance.
Field Summary |
Fields inherited from interface org.apache.avalon.activation.appliance.Appliance |
MBEAN_SERVER_KEY |
Constructor Summary | |
DefaultAppliance(Logger logger,
ServiceContext context,
DeploymentModel model,
Engine engine)
|
Method Summary | |
void |
assemble()
Assemble the appliance. |
void |
decommission()
Decommission the block. |
void |
deploy()
Deploy the appliance during which deployment phase artifacts such as logging channels, contextualization handlers and so on are established in preparation for component creation requests. |
void |
disassemble()
Disassemble the appliance. |
void |
dispose()
|
Appliance[] |
getProviders()
Return the set of appliances assigned as deployment and runtime providers. |
boolean |
isAssembled()
Returns the assembled state of the appliance. |
void |
release(Object instance)
Release an object. |
Object |
resolve()
Resolve a object to a value. |
Methods inherited from class org.apache.avalon.activation.appliance.impl.AbstractAppliance |
getModel, isEnabled, toString |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultAppliance(Logger logger, ServiceContext context, DeploymentModel model, Engine engine)
Method Detail |
public boolean isAssembled()
isAssembled
in interface Composite
public void assemble() throws AssemblyException
assemble
in interface Composite
ApplianceException
- if an error occurs during appliance assembly
AssemblyException
public void disassemble()
disassemble
in interface Composite
public Appliance[] getProviders()
getProviders
in interface Composite
IllegalStateException
- if invoked prior to
the completion of the assembly phasepublic void deploy() throws Exception
deploy
in interface Deployable
Exception
- if a deployment error occurspublic void decommission()
decommission
in interface Deployable
public Object resolve() throws Exception
resolve
in interface Home
Exception
- if an error occurspublic void release(Object instance)
release
in interface Home
instance
- the object to be releasedpublic void dispose()
dispose
in interface Disposable
dispose
in class AbstractAppliance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |