public void addComponent(final ComponentConfiguration componentConfiguration) { if(componentConfiguration.getViews().size() < 2) { if(componentConfiguration.getViews().size() == 0) { componentsByClass.put(componentConfiguration.getComponentClass(), new ComponentManagedReferenceFactory(componentConfiguration.getComponentDescription().getStartServiceName(), null)); } else { componentsByClass.put(componentConfiguration.getComponentClass(), new ComponentManagedReferenceFactory(componentConfiguration.getComponentDescription().getStartServiceName(), componentConfiguration.getViews().get(0).getViewServiceName())); } } }
public ManagedReference createInstance(final Object instance) { final ComponentManagedReferenceFactory factory = componentsByClass.get(instance.getClass()); if (factory == null) { return classIntrospectorInjectedValue.getValue().createInstance(instance); } return factory.getReference(instance); }
public void addComponent(final ComponentConfiguration componentConfiguration) { if(componentConfiguration.getViews().size() < 2) { if(componentConfiguration.getViews().size() == 0) { componentsByClass.put(componentConfiguration.getComponentClass(), new ComponentManagedReferenceFactory(componentConfiguration.getComponentDescription().getStartServiceName(), null)); } else { componentsByClass.put(componentConfiguration.getComponentClass(), new ComponentManagedReferenceFactory(componentConfiguration.getComponentDescription().getStartServiceName(), componentConfiguration.getViews().get(0).getViewServiceName())); } } }
public void addComponent(final ComponentConfiguration componentConfiguration) { if(componentConfiguration.getViews().size() < 2) { if(componentConfiguration.getViews().size() == 0) { componentsByClass.put(componentConfiguration.getComponentClass(), new ComponentManagedReferenceFactory(componentConfiguration.getComponentDescription().getStartServiceName(), null)); } else { componentsByClass.put(componentConfiguration.getComponentClass(), new ComponentManagedReferenceFactory(componentConfiguration.getComponentDescription().getStartServiceName(), componentConfiguration.getViews().get(0).getViewServiceName())); } } }
public ManagedReference createInstance(final Object instance) { final ComponentManagedReferenceFactory factory = componentsByClass.get(instance.getClass()); if (factory == null) { return classIntrospectorInjectedValue.getValue().createInstance(instance); } return factory.getReference(instance); }
public ManagedReference createInstance(final Object instance) { final ComponentManagedReferenceFactory factory = componentsByClass.get(instance.getClass()); if (factory == null) { return classIntrospectorInjectedValue.getValue().createInstance(instance); } return factory.getReference(instance); }