org.jboss.deployers.spi.management
Interface RuntimeComponentDispatcher


public interface RuntimeComponentDispatcher

Dispatches ManagedOperation invocation to runtime component associated with attachment.

Version:
$Revision: 88960 $
Author:
Ales Justin

Method Summary
 org.jboss.metatype.api.values.MetaValue get(Object componentName, String propertyName)
          Get value.
 Object invoke(Object componentName, String methodName, org.jboss.metatype.api.values.MetaValue... param)
          Dispatch ManagedOperation invocation with param parameters to coresponding attachment.
<T extends Enum<?>>
T
mapControllerState(Object name, ContextStateMapper<T> mapper)
          Map the state of the component.
 void set(Object componentName, String propertyName, org.jboss.metatype.api.values.MetaValue value)
          Set the value.
 

Method Detail

get

org.jboss.metatype.api.values.MetaValue get(Object componentName,
                                            String propertyName)
Get value.

Parameters:
componentName - the runtime component name
propertyName - the property name
Returns:
the return meta value

set

void set(Object componentName,
         String propertyName,
         org.jboss.metatype.api.values.MetaValue value)
Set the value.

Parameters:
componentName - the runtime component name
propertyName - the property name
value - the meta value

invoke

Object invoke(Object componentName,
              String methodName,
              org.jboss.metatype.api.values.MetaValue... param)
Dispatch ManagedOperation invocation with param parameters to coresponding attachment.

Parameters:
componentName - the runtime component name
methodName - the methodName
param - the parameters
Returns:
runtime component's return value

mapControllerState

<T extends Enum<?>> T mapControllerState(Object name,
                                         ContextStateMapper<T> mapper)
Map the state of the component.

Type Parameters:
T - the state enum
Parameters:
name - the component name
mapper - the state mapper
Returns:
the mapped state


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