Something went wrong on our end
If this keeps happening, share this information with your admin, who should contact support.
Hash 6RX6J2
Trace 4788ba47d50b4b1a90083fad8610326d
Details
Assignee
Steve EbersoleReporter
Steve EbersoleTime tracking
5.57h loggedComponents
Fix versions
Priority
Major
Details
Details
Assignee
Reporter
Time tracking
5.57h logged
Would really love to "discriminate" the types of services expected/allowed in each. For example, "basic" or "non-contextual" services would live in one registry while services which require access to or are better implemented as scoped to the session factory would live in a second. The basic registry would be the parent of the
SessionFactory
-specific one.I went dow this path:
public interface Service<T> extends Serializable { } public interface ServiceRegistry<T> extends Serializable { public <R extends Service> R getService(Class<R> serviceRole); public <R extends Service<T>> void registerService(Class<R> serviceRole, R service); public <R extends Service<T>> void registerServiceInitiator(ServiceInitiator<R> initiator); }
but started running into typing issues way beyond my skills.