org.jboss.beans.metadata.spi
Interface MetaDataVisitor

All Known Implementing Classes:
AbstractMetaDataVisitor

public interface MetaDataVisitor

A metadata vistor.

Version:
$Revision: 64920 $
Author:
Adrian Brock

Method Summary
 void addDependency(DependencyItem dependency)
          Add a dependency
<T> void
addInstallCallback(CallbackItem<T> callback)
          Add an install callback
<T> void
addUninstallCallback(CallbackItem<T> callback)
          Add an uninstall callback
 void describeVisit(MetaDataVisitorNode node)
          Revisit the node
 ControllerState getContextState()
          Get the context state
 KernelControllerContext getControllerContext()
          Get the kernel controller context
 void initialVisit(MetaDataVisitorNode node)
          Visit the node
 void setContextState(ControllerState contextState)
          Set the context state
 Stack<MetaDataVisitorNode> visitorNodeStack()
          Current meta data visited branch
 

Method Detail

getControllerContext

KernelControllerContext getControllerContext()
Get the kernel controller context

Returns:
the context

getContextState

ControllerState getContextState()
Get the context state

Returns:
the context state

setContextState

void setContextState(ControllerState contextState)
Set the context state

Parameters:
contextState - the context state

addDependency

void addDependency(DependencyItem dependency)
Add a dependency

Parameters:
dependency - the dependency

addInstallCallback

<T> void addInstallCallback(CallbackItem<T> callback)
Add an install callback

Type Parameters:
T - the callback item type
Parameters:
callback - the callback

addUninstallCallback

<T> void addUninstallCallback(CallbackItem<T> callback)
Add an uninstall callback

Type Parameters:
T - the callback item type
Parameters:
callback - the callback

initialVisit

void initialVisit(MetaDataVisitorNode node)
Visit the node

Parameters:
node - the node

describeVisit

void describeVisit(MetaDataVisitorNode node)
Revisit the node

Parameters:
node - the node

visitorNodeStack

Stack<MetaDataVisitorNode> visitorNodeStack()
Current meta data visited branch

Returns:
stack of meta data objects in this branch


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.