View Javadoc
1 /* 2 * JBoss, the OpenSource J2EE webOS 3 * 4 * Distributable under LGPL license. 5 * See terms of license at gnu.org. 6 */ 7 package net.sf.panoptes.model.component.registry; 8 9 10 import net.sf.panoptes.model.component.Component; 11 12 /*** 13 * Represents a IComponent entry in the Registry. Original code from JBoss. 14 * 15 * @see net.sf.panoptes.model.component.IComponent 16 * @see net.sf.panoptes.model.component.registry.ComponentRegistry 17 * 18 * @author dag@liodden.no 19 * @version 0.1 20 */ 21 public class ComponentEntry 22 { 23 // Attributes ---------------------------------------------------- 24 25 /*** 26 * The registered object name of the component 27 */ 28 private ComponentName componentName = null; 29 30 /*** 31 * The class name of the component 32 */ 33 private String resourceClassName = null; 34 35 /*** 36 * The component registered 37 */ 38 private Component component = null; 39 40 // Constructors -------------------------------------------------- 41 42 /*** 43 * Construct a new component registration entry. 44 * 45 * @param componentName the name with which the component is registered 46 * @param object the component 47 * @param valueMap any other information to include in the registration 48 */ 49 public ComponentEntry(ComponentName componentName, Component component) 50 { 51 this.componentName = componentName; 52 this.resourceClassName = component.getClass().getName(); 53 this.component = component; 54 } 55 56 // Public -------------------------------------------------------- 57 58 /*** 59 * Retrieve the object name with the component is registered. 60 * 61 * @return the object name 62 */ 63 public ComponentName getComponentName() 64 { 65 return componentName; 66 } 67 68 /*** 69 * Retrieve the class name for the component. 70 * 71 * @return the class name 72 */ 73 public String getResourceClassName() 74 { 75 return resourceClassName; 76 } 77 78 /*** 79 * Retrieve the component. 80 * 81 * @return the component 82 */ 83 public Component getComponent() 84 { 85 return component; 86 } 87 88 89 }

This page was automatically generated by Maven