summaryrefslogtreecommitdiffstats
path: root/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ReferenceFactory.java
blob: 05144874a0e9c512fac7e2a61b15a1231011b2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.osoa.sca;

/**
 * @version $Rev$ $Date$
 */
public interface ReferenceFactory<B> {
    /**
     * Returns the name of the reference associated with this factory.
     *
     * @return the name of the reference associated with this factory
     */
    String getName();

    /**
     * Create a new ServiceReference for the reference associated with this factory.
     *
     * @return a new ServiceReference that can be used access the reference
     */
    ServiceReference<B> newReference();
}