@Override public MarshallingContext getMarshallingContext() { return new SimpleMarshallingContextFactory().createMarshallingContext(new SimpleMarshallingConfigurationRepository(MarshallingVersion.class, MarshallingVersion.CURRENT, this), this.getModule().getClassLoader()); }
@Override public BeanManager<I, T, TransactionBatch> createBeanManager(IdentifierFactory<I> identifierFactory, PassivationListener<T> passivationListener, RemoveListener<T> removeListener) { MarshallingContext context = new SimpleMarshallingContextFactory().createMarshallingContext(this.configuration.getMarshallingConfigurationRepository(), this.configuration.getBeanContext().getClassLoader()); MarshalledValueFactory<MarshallingContext> factory = new SimpleMarshalledValueFactory(context); Cache<BeanKey<I>, BeanEntry<I>> beanCache = this.configuration.getCache();
@Override public MarshallingContext getMarshallingContext() { return new SimpleMarshallingContextFactory().createMarshallingContext(new SimpleMarshallingConfigurationRepository(MarshallingVersion.class, MarshallingVersion.CURRENT, this), this.getModule().getClassLoader()); }
@Override public SSOManager<A, D, S, L, Batch> get() { SSOManagerFactory<A, D, S, Batch> factory = this.factory.get(); Module module = Module.forClass(this.getClass()); this.context = new SimpleMarshallingContextFactory().createMarshallingContext(new SimpleMarshallingConfigurationRepository(MarshallingVersion.class, MarshallingVersion.CURRENT, module), null); SSOManager<A, D, S, L, Batch> manager = factory.createSSOManager(this); manager.start(); return manager; }
MarshallingContext context = new SimpleMarshallingContextFactory().createMarshallingContext(new SimpleMarshallingConfigurationRepository(MarshallingVersion.class, MarshallingVersion.CURRENT, module), module.getClassLoader()); MarshalledValueFactory<MarshallingContext> factory = new SimpleMarshalledValueFactory(context); LocalContextFactory<LocalSessionContext> localContextFactory = new LocalSessionContextFactory();
@Override public BeanManager<I, T, TransactionBatch> createBeanManager(IdentifierFactory<I> identifierFactory, PassivationListener<T> passivationListener, RemoveListener<T> removeListener) { MarshallingContext context = new SimpleMarshallingContextFactory().createMarshallingContext(this.configuration.getMarshallingConfigurationRepository(), this.configuration.getBeanContext().getClassLoader()); MarshalledValueFactory<MarshallingContext> factory = new SimpleMarshalledValueFactory(context); Cache<BeanKey<I>, BeanEntry<I>> beanCache = this.configuration.getCache();