/** * Returns the {@link TimedObjectInvoker} to which this timer service belongs * * @return */ public TimedObjectInvoker getInvoker() { return timedObjectInvoker.getValue(); }
@Override public Object getInstance() { return value.getValue(); } }
/** * * @param name * @param source */ public ExternalContextBinderService(String name, Object source) { super(name, source); this.externalContextsInjectedValue = new InjectedValue<>(); }
@Override public ManagedReference getReference() { BeanManager bm = beanManager.getOptionalValue(); if (bm == null) { return null; } return new ValueManagedReference(new ImmediateValue<Object>(bm)); }
@Override public void start(final StartContext context) throws StartException { beanManager = beanManagerInjector.getOptionalValue(); }
@Override public T getValue() { return this.value.getValue(); } }
/** * Construct a new instance. * */ public NamingService() { this.namingStore = new InjectedValue<>(); }
/** * Constructs a new mapped value service. * @param mapper a function that maps the supplied value to the service value * @param supplier produces the supplied value */ public MappedValueService(Function<T, V> mapper, Value<T> supplier) { super(mapper, context -> supplier.getValue(), (context, value) -> {}); } }
/** * Get the value from the injected context. * * @return The value of the named entry * @throws IllegalStateException */ public ManagedReferenceFactory getValue() throws IllegalStateException { return managedReferenceFactory.getValue(); }
/** */ public TransactionSetupProviderService() { this.transactionManagerInjectedValue = new InjectedValue<>(); }
/** * Get the naming store value. * * @return The naming store. * @throws IllegalStateException */ public NamingStore getValue() throws IllegalStateException { return namingStore.getValue(); } }
public ContextServiceService(final String name, final String jndiName, final ContextSetupProvider contextSetupProvider) { super(jndiName); this.name = name; this.contextSetupProvider = contextSetupProvider; this.transactionSetupProvider = new InjectedValue<>(); }
/** * {@inheritDoc} */ public BasicComponent getValue() throws IllegalStateException, IllegalArgumentException { return component.getValue(); }
/** * @param name * @param jndiName * @param priority * @see ManagedThreadFactoryImpl#ManagedThreadFactoryImpl(String, org.glassfish.enterprise.concurrent.ContextServiceImpl, int) */ public ManagedThreadFactoryService(String name, String jndiName, int priority) { super(jndiName); this.name = name; this.contextService = new InjectedValue<>(); this.priority = priority; }
@Override public ManagementRepository getManagementRepository() { return managementRepositoryValue.getValue(); }
public DefaultNamespaceContextSelectorService() { this.globalNamingStore = new InjectedValue<>(); this.jbossNamingStore = new InjectedValue<>(); this.remoteExposedNamingStore = new InjectedValue<>(); }
@Override public Server getServer() { return this.serverService.getValue(); }
@Override protected CachedConnectionManager getCachedConnectionManager() { return ccmValue.getValue(); }
@Override public JobRepository getDefaultJobRepository() { return jobRepositoryInjector.getValue(); }
@Override public SocketBinding getSocketBinding() { return binding.getValue(); }