Description

None

is followed up by

Activity

Steve EbersoleMarch 24, 2011 at 9:20 PM

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.

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 Ebersole

Reporter

Steve Ebersole

Time tracking

5.57h logged

Components

Fix versions

Priority

Major

Flag notifications