private void loadContextual() { if (serializable != null) { cached = serializable; } else if (identifierIndex != null) { cached = getContextualStore().<C, I> getContextual(getBeanIdentifierIndex().getIdentifier(identifierIndex)); } else if (identifier != null) { cached = getContextualStore().<C, I> getContextual(identifier); } if (cached == null) { throw new IllegalStateException("Error restoring serialized contextual with id " + identifier); } }
private void loadContextual() { if (serializable != null) { cached = serializable; } else if (identifierIndex != null) { cached = getContextualStore().<C, I> getContextual(getBeanIdentifierIndex().getIdentifier(identifierIndex)); } else if (identifier != null) { cached = getContextualStore().<C, I> getContextual(identifier); } if (cached == null) { throw new IllegalStateException("Error restoring serialized contextual with id " + identifier); } }
private void loadContextual() { if (serializable != null) { cached = serializable; } else if (identifierIndex != null) { cached = getContextualStore().<C, I> getContextual(getBeanIdentifierIndex().getIdentifier(identifierIndex)); } else if (identifier != null) { cached = getContextualStore().<C, I> getContextual(identifier); } if (cached == null) { throw new IllegalStateException("Error restoring serialized contextual with id " + identifier); } }
private void loadContextual() { if (serializable != null) { cached = serializable; } else if (identifierIndex != null) { cached = getContextualStore().<C, I> getContextual(getBeanIdentifierIndex().getIdentifier(identifierIndex)); } else if (identifier != null) { cached = getContextualStore().<C, I> getContextual(identifier); } if (cached == null) { throw new IllegalStateException("Error restoring serialized contextual with id " + identifier); } }
@Override protected Bean<T> initialize() { if (beanId == null) { return null; } return Container.instance(contextId).services().get(ContextualStore.class).<Bean<T>, T> getContextual(beanId); } }
@Override protected Bean<T> initialize() { if (beanId == null) { return null; } return Container.instance(contextId).services().get(ContextualStore.class).<Bean<T>, T> getContextual(beanId); } }
@Override protected Bean<T> initialize() { if (beanId == null) { return null; } return Container.instance(contextId).services().get(ContextualStore.class).<Bean<T>, T> getContextual(beanId); } }
protected static <T> Contextual<T> getContextual(String contextId, String id) { return Container.instance(contextId).services().get(ContextualStore.class).<Contextual<T>, T>getContextual(id); }
@Override protected Bean<T> initialize() { if (beanId == null) { return null; } return Container.instance(contextId).services().get(ContextualStore.class).<Bean<T>, T> getContextual(beanId); } }
@Override protected Bean<T> initialize() { if (beanId == null) { return null; } return Container.instance(contextId).services().get(ContextualStore.class).<Bean<T>, T> getContextual(beanId); } }
public Bean<?> getBean() { if (bean == null) { if (beanId == null) { throw BeanLogger.LOG.proxyHandlerSerializedForNonSerializableBean(); } bean = Container.instance(contextId).services().get(ContextualStore.class).<Bean<Object>, Object>getContextual(beanId); } return bean; }
public Bean<?> getBean() { if (bean == null) { if (beanId == null) { throw BeanLogger.LOG.proxyHandlerSerializedForNonSerializableBean(); } bean = Container.instance(contextId).services().get(ContextualStore.class).<Bean<Object>, Object>getContextual(beanId); } return bean; }
public Bean<?> getBean() { if (bean == null) { if (beanId == null) { throw BeanLogger.LOG.proxyHandlerSerializedForNonSerializableBean(); } bean = Container.instance(contextId).services().get(ContextualStore.class).<Bean<Object>, Object>getContextual(beanId); } return bean; }
public Bean<?> getBean() { if (bean == null) { if (beanId == null) { throw BeanLogger.LOG.proxyHandlerSerializedForNonSerializableBean(); } bean = Container.instance(contextId).services().get(ContextualStore.class).<Bean<Object>, Object>getContextual(beanId); } return bean; }
public Bean<?> getBean() { if (bean == null) { if (beanId == null) { throw BeanLogger.LOG.proxyHandlerSerializedForNonSerializableBean(); } bean = Container.instance(contextId).services().get(ContextualStore.class).<Bean<Object>, Object>getContextual(beanId); } return bean; }
public T call() throws Exception { if (instance == null) { Contextual<T> contextual = getBeanManager().getServices().get(ContextualStore.class).<Contextual<T>, T>getContextual(beanId); if (contextual instanceof EEResourceProducerField<?, ?>) { this.instance = Reflections.<EEResourceProducerField<?, T>>cast(contextual).createUnderlying(creationalContext); } else { throw BeanLogger.LOG.beanNotEeResourceProducer(contextual); } } return instance; }
public T call() throws Exception { if (instance == null) { Contextual<T> contextual = getBeanManager().getServices().get(ContextualStore.class).<Contextual<T>, T>getContextual(beanId); if (contextual instanceof EEResourceProducerField<?, ?>) { this.instance = Reflections.<EEResourceProducerField<?, T>>cast(contextual).createUnderlying(creationalContext); } else { throw BeanLogger.LOG.beanNotEeResourceProducer(contextual); } } return instance; }
public T call() throws Exception { if (instance == null) { Contextual<T> contextual = getBeanManager().getServices().get(ContextualStore.class).<Contextual<T>, T>getContextual(beanId); if (contextual instanceof EEResourceProducerField<?, ?>) { this.instance = Reflections.<EEResourceProducerField<?, T>>cast(contextual).createUnderlying(creationalContext); } else { throw BeanLogger.LOG.beanNotEeResourceProducer(contextual); } } return instance; }
public T call() throws Exception { if (instance == null) { Contextual<T> contextual = getBeanManager().getServices().get(ContextualStore.class).<Contextual<T>, T>getContextual(beanId); if (contextual instanceof EEResourceProducerField<?, ?>) { this.instance = Reflections.<EEResourceProducerField<?, T>>cast(contextual).createUnderlying(creationalContext); } else { throw BeanLogger.LOG.beanNotEeResourceProducer(contextual); } } return instance; }
public T call() throws Exception { if (instance == null) { Contextual<T> contextual = getBeanManager().getServices().get(ContextualStore.class).<Contextual<T>, T>getContextual(beanId); if (contextual instanceof EEResourceProducerField<?, ?>) { this.instance = Reflections.<EEResourceProducerField<?, T>>cast(contextual).createUnderlying(creationalContext); } else { throw BeanLogger.LOG.beanNotEeResourceProducer(contextual); } } return instance; }