|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.webapp.DefaultComponentManager
public class DefaultComponentManager
A simple implementation of a component manager.
| Field Summary | |
|---|---|
static String[] |
COMPONENT_TERMINATIONS
|
static String |
VALIDATE_METHOD_INITIALS
|
| Constructor Summary | |
|---|---|
DefaultComponentManager(LogicMethodFactory factory)
|
|
| 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 typeClazz)
Registers a new component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VALIDATE_METHOD_INITIALS
public static final String[] COMPONENT_TERMINATIONS
| Constructor Detail |
|---|
public DefaultComponentManager(LogicMethodFactory factory)
| Method Detail |
|---|
public ComponentType getComponent(String name,
String logic)
throws ComponentNotFoundException,
LogicNotFoundException
ComponentManager
getComponent in interface ComponentManagerLogicNotFoundException
ComponentNotFoundExceptionpublic Set<ComponentType> getComponents()
ComponentManager
getComponents in interface ComponentManager
public ComponentType getComponentType(Class<?> type)
throws InvalidComponentException
getComponentType in interface ComponentManagerInvalidComponentException
public void register(ComponentType type)
throws LogicNotFoundException
ComponentManager
register in interface ComponentManagertype - the component type
LogicNotFoundException
public boolean register(String typeClazz)
throws InvalidComponentException
ComponentManager
register in interface ComponentManagertypeClazz - component class
InvalidComponentException - invalid component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||