Search in sources :

Example 16 with HazelcastInstanceAware

use of com.hazelcast.core.HazelcastInstanceAware in project hazelcast by hazelcast.

the class DefaultSerializationServiceBuilder method addConfigPortableFactories.

private void addConfigPortableFactories(final Map<Integer, PortableFactory> portableFactories, SerializationConfig config, ClassLoader cl) {
    registerPortableFactories(portableFactories, config);
    buildPortableFactories(portableFactories, config, cl);
    for (PortableFactory f : portableFactories.values()) {
        if (f instanceof HazelcastInstanceAware) {
            ((HazelcastInstanceAware) f).setHazelcastInstance(hazelcastInstance);
        }
    }
}
Also used : HazelcastInstanceAware(com.hazelcast.core.HazelcastInstanceAware) PortableFactory(com.hazelcast.nio.serialization.PortableFactory)

Aggregations

HazelcastInstanceAware (com.hazelcast.core.HazelcastInstanceAware)16 NodeEngine (com.hazelcast.spi.NodeEngine)6 ItemListenerConfig (com.hazelcast.config.ItemListenerConfig)2 ItemListener (com.hazelcast.core.ItemListener)2 MessageListener (com.hazelcast.core.MessageListener)2 Serializer (com.hazelcast.nio.serialization.Serializer)2 CollectionConfig (com.hazelcast.config.CollectionConfig)1 EntryListenerConfig (com.hazelcast.config.EntryListenerConfig)1 GlobalSerializerConfig (com.hazelcast.config.GlobalSerializerConfig)1 ListenerConfig (com.hazelcast.config.ListenerConfig)1 ClientListener (com.hazelcast.core.ClientListener)1 DistributedObjectListener (com.hazelcast.core.DistributedObjectListener)1 EntryListener (com.hazelcast.core.EntryListener)1 HazelcastException (com.hazelcast.core.HazelcastException)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 LifecycleListener (com.hazelcast.core.LifecycleListener)1 Member (com.hazelcast.core.Member)1 MembershipListener (com.hazelcast.core.MembershipListener)1 MigrationListener (com.hazelcast.core.MigrationListener)1 ClusterVersionListener (com.hazelcast.internal.cluster.ClusterVersionListener)1