Skip to content

Commit

Permalink
Implements Poolable Connector rather than Connector
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan committed Apr 16, 2019
1 parent 80e5911 commit 149c8fd
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.identityconnectors.framework.common.objects.SchemaBuilder;
import org.identityconnectors.framework.spi.Configuration;
import org.identityconnectors.framework.spi.Connector;
import org.identityconnectors.framework.spi.PoolableConnector;
import org.identityconnectors.framework.spi.ConnectorClass;
import org.identityconnectors.framework.spi.operations.*;
import org.identityconnectors.framework.common.exceptions.*;
Expand Down Expand Up @@ -79,7 +80,7 @@
*
*/
@ConnectorClass(displayNameKey = "connector.wordpress.rest.display", configurationClass = WordpressRestConfiguration.class)
public class WordpressRestConnector extends AbstractRestConnector<WordpressRestConfiguration> implements TestOp, SchemaOp, DeleteOp, Connector, CreateOp, UpdateOp, SearchOp<WordpressFilter> {
public class WordpressRestConnector extends AbstractRestConnector<WordpressRestConfiguration> implements TestOp, SchemaOp, DeleteOp, PoolableConnector, CreateOp, UpdateOp, SearchOp<WordpressFilter> {

private static final Log LOG = Log.getLog(WordpressRestConnector.class);
protected static final String ATTR_NAME = "username"; //icfs:name
Expand Down Expand Up @@ -135,6 +136,12 @@ public void test() {

}

@Override
public void checkAlive() {
test();
}


@Override
public Schema schema() {
SchemaBuilder schemaBuilder = new SchemaBuilder(WordpressRestConnector.class);
Expand Down

0 comments on commit 149c8fd

Please sign in to comment.