org.vraptor.component
Interface ComponentManager

All Known Implementing Classes:
DefaultComponentManager

public interface ComponentManager

Component managers are capable of finding and dealing with business components/logics.

Author:
Guilherme Silveira

Method Summary
 ComponentType getComponent(String name, String logic)
          Returns the business component
 Set<ComponentType> getComponents()
          Returns a list with all component classes.
 ComponentType getComponentType(Class<?> type)
           
 void register(ComponentType type)
          Directly registers a component type.
 boolean register(String type)
          Registers a new component
 

Method Detail

register

boolean register(String type)
                 throws InvalidComponentException
Registers a new component

Parameters:
type - component class
Throws:
InvalidComponentException - invalid component

getComponent

ComponentType getComponent(String name,
                           String logic)
                           throws ComponentNotFoundException,
                                  LogicNotFoundException
Returns the business component

Throws:
LogicNotFoundException
ComponentNotFoundException

getComponents

Set<ComponentType> getComponents()
Returns a list with all component classes.

Returns:
all components registered

register

void register(ComponentType type)
              throws LogicNotFoundException
Directly registers a component type.

Parameters:
type - the component type
Throws:
LogicNotFoundException

getComponentType

ComponentType getComponentType(Class<?> type)
                               throws InvalidComponentException
Throws:
InvalidComponentException


Copyright © 2004-2008 VRaptor. All Rights Reserved.