Exemplo n.º 1
0
 /** Whether the component is singleton */
 @Override
 public boolean isSingleton() {
   if (declaration.isDefinedSingleton() || getGroup() == null) {
     return declaration.isSingleton();
   }
   return getGroup().isSingleton();
 }
Exemplo n.º 2
0
 @Override
 public Map<String, String> getValidAttributes() {
   Map<String, String> ret = new HashMap<String, String>();
   for (PropertyDefinition def : declaration.getPropertyDefinitions()) {
     ret.put(def.getName(), def.getType());
   }
   if (getGroup() != null) {
     ret.putAll(getGroup().getValidAttributes());
   }
   return ret;
 }
Exemplo n.º 3
0
 @Override
 public final String getName() {
   return declaration.getName();
 }
Exemplo n.º 4
0
 public boolean isInternalInstantiable() {
   if (declaration.isDefinedInstantiable() || getGroup() == null) {
     return (declaration.isInstantiable());
   }
   return ((ComponentImpl) getGroup()).isInternalInstantiable();
 }