|
|||||||||||
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 |
destroy(Object instance)
Decommission and dispose of the supplied component. |
void |
disassemble()
Disassemble the appliance. |
void |
dispose()
|
Appliance[] |
getProviders()
Return the set of appliances assigned as providers. |
boolean |
isAssembled()
Returns the assembled state of the appliance. |
Object |
newInstance()
Create a new fully deployed instance of the type managed by the appliance. |
void |
release(Object source,
Object instance)
Release an object. |
Object |
resolve(Object source)
Resolve a object to a value. |
Object |
resolve(Object source,
Class[] ref)
Resolve a object to a value relative to a supplied set of interface classes. |
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()
Composite
getProviders
in interface Composite
public void deploy() throws Exception
deploy
in interface Deployable
Exception
- if a deployment error occurspublic void decommission()
decommission
in interface Deployable
public Object resolve(Object source) throws Exception
resolve
in interface Home
source
- the context within the the resolution is applied
Exception
- if an error occurspublic Object resolve(Object source, Class[] ref) throws Exception
resolve
in interface Home
source
- the aquiring sourceref
- the castable service classes
Exception
- if an error occurspublic void release(Object source, Object instance)
release
in interface Home
source
- the client that obtained the intial referenceinstance
- the object to be releasedpublic Object newInstance() throws LifecycleException
newInstance
in interface Factory
LifecycleException
- if an error while processing
the component though its deployment lifecyclepublic void destroy(Object instance)
Factory
destroy
in interface Factory
instance
- the object to decommissionpublic 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 |