directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r434250 - in /directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid: ./ impl/ impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/ service/ service/src/main/java/org/apache/directory/server2/schema/registries...
Date Wed, 23 Aug 2006 23:38:26 GMT
Author: akarasulu
Date: Wed Aug 23 16:38:24 2006
New Revision: 434250

URL: http://svn.apache.org/viewvc?rev=434250&view=rev
Log:
adding setup for test

Added:
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryActivator.java
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryFactory.java
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryProxy.java
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.classpath
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.project
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.settings/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.settings/org.eclipse.jdt.core.prefs
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/pom.xml
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/oid/
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryTestActivator.java
Modified:
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/pom.xml
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/pom.xml
    directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/pom.xml

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/pom.xml?rev=434250&r1=434249&r2=434250&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/pom.xml (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/pom.xml Wed Aug 23
16:38:24 2006
@@ -30,7 +30,7 @@
               A bundle containing the OID registry interface.
             </bundleDescription>
             <importPackage>
-              org.apache.directory.server2.schema.registries.oid
+              javax.naming,org.apache.directory.server2.schema.registries.oid
             </importPackage>
             <exportPackage>
               org.apache.directory.server2.schema.registries.oid.impl

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryActivator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryActivator.java?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryActivator.java
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryActivator.java
Wed Aug 23 16:38:24 2006
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.directory.server2.schema.registries.oid.impl;
+
+
+import java.util.Hashtable;
+
+import org.apache.directory.server2.schema.registries.oid.OidRegistry;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+
+/**
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class DefaultOidRegistryActivator implements BundleActivator
+{
+    DefaultOidRegistryFactory factory;
+
+    
+    /* (non-Javadoc)
+     * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+     */
+    public void start( BundleContext bundleContext ) throws Exception
+    {
+        factory = new DefaultOidRegistryFactory();
+        bundleContext.registerService( OidRegistry.class.getName(), factory, new Hashtable()
);
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+     */
+    public void stop( BundleContext bundleContext ) throws Exception
+    {
+        factory = null;
+    }
+}

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryFactory.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryFactory.java?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryFactory.java
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/impl/src/main/java/org/apache/directory/server2/schema/registries/oid/impl/DefaultOidRegistryFactory.java
Wed Aug 23 16:38:24 2006
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.directory.server2.schema.registries.oid.impl;
+
+
+import org.apache.directory.server2.schema.registries.oid.OidRegistryProxy;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+
+/**
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class DefaultOidRegistryFactory implements ServiceFactory
+{
+    private DefaultOidRegistry registry = new DefaultOidRegistry();
+    
+    
+    /* (non-Javadoc)
+     * @see org.osgi.framework.ServiceFactory#getService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration)
+     */
+    public Object getService( Bundle requestingBundle, ServiceRegistration serviceRegistration
)
+    {
+        return new OidRegistryProxy( registry );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.osgi.framework.ServiceFactory#ungetService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration,
java.lang.Object)
+     */
+    public void ungetService( Bundle requestingBundle, ServiceRegistration serviceRegistration,
Object proxy )
+    {
+        ( ( OidRegistryProxy ) proxy ).dispose();
+    }
+}

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/pom.xml?rev=434250&r1=434249&r2=434250&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/pom.xml (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/pom.xml Wed Aug 23 16:38:24
2006
@@ -13,5 +13,6 @@
   <modules>
     <module>service</module>
     <module>impl</module>
+    <module>test</module>
   </modules>
 </project>

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/pom.xml?rev=434250&r1=434249&r2=434250&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/pom.xml (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/pom.xml Wed Aug
23 16:38:24 2006
@@ -24,6 +24,7 @@
             <bundleDescription>
               A bundle containing the OID registry interface.
             </bundleDescription>
+            <importPackage>javax.naming</importPackage>
             <exportPackage>
               org.apache.directory.server2.schema.registries.oid
             </exportPackage>

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryProxy.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryProxy.java?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryProxy.java
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/service/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryProxy.java
Wed Aug 23 16:38:24 2006
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.directory.server2.schema.registries.oid;
+
+
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.naming.NamingException;
+
+
+/**
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public final class OidRegistryProxy implements OidRegistry
+{
+    private OidRegistry proxied;
+
+
+    /**
+     * Proxies a OID registry service.
+     * 
+     * @param proxied
+     */
+    public OidRegistryProxy( OidRegistry proxied )
+    {
+        this.proxied = proxied;
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#getAliases(java.lang.String)
+     */
+    public final List<String> getAliases( String oid ) throws NamingException
+    {
+        return proxied.getAliases( oid );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#getNameByOid()
+     */
+    public final Map<String, List<String>> getNameByOid()
+    {
+        return proxied.getNameByOid();
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#getOid(java.lang.String)
+     */
+    public final String getOid( String alias ) throws NamingException
+    {
+        return proxied.getOid( alias );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#getOidByName()
+     */
+    public final Map<String, String> getOidByName()
+    {
+        return proxied.getOidByName();
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#getPrimaryName(java.lang.String)
+     */
+    public final String getPrimaryName( String oid ) throws NamingException
+    {
+        return proxied.getPrimaryName( oid );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#hasOid(java.lang.String)
+     */
+    public final boolean hasOid( String aliasOrOid )
+    {
+        return proxied.hasOid( aliasOrOid );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#iterator()
+     */
+    public final Iterator<String> iterator()
+    {
+        return proxied.iterator();
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.apache.directory.server2.schema.registries.oid.OidRegistry#register(java.lang.String,
java.lang.String)
+     */
+    public final void register( String alias, String oid )
+    {
+        proxied.register( alias, oid );
+    }
+
+    
+    /**
+     * Disposes resources or referrences held by this proxy object.
+     */
+    public final void dispose()
+    {
+        this.proxied = null;
+    }
+}

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.classpath
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.classpath?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.classpath (added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.classpath Wed Aug
23 16:38:24 2006
@@ -0,0 +1,8 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/felix/org.osgi.core/0.8.0-SNAPSHOT/org.osgi.core-0.8.0-SNAPSHOT.jar"/>
+  <classpathentry kind="src" path="/oid-registry-impl"/>
+  <classpathentry kind="src" path="/oid-registry-service"/>
+</classpath>
\ No newline at end of file

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.project
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.project?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.project (added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.project Wed Aug 23
16:38:24 2006
@@ -0,0 +1,17 @@
+<projectDescription>
+  <name>oid-registry-test</name>
+  <comment/>
+  <projects>
+    <project>oid-registry-impl</project>
+    <project>oid-registry-service</project>
+  </projects>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments/>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.settings/org.eclipse.jdt.core.prefs?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.settings/org.eclipse.jdt.core.prefs
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/.settings/org.eclipse.jdt.core.prefs
Wed Aug 23 16:38:24 2006
@@ -0,0 +1,5 @@
+#Wed Aug 23 19:10:09 EDT 2006
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/pom.xml?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/pom.xml (added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/pom.xml Wed Aug 23
16:38:24 2006
@@ -0,0 +1,76 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <artifactId>build</artifactId>
+    <groupId>org.apache.directory.server2.schema.registries.oid</groupId>
+    <version>2.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>oid-registry-test</artifactId>
+  <packaging>osgi-bundle</packaging>
+  <name>ApacheDS 2.0: Schema Oid Registry Test</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.core</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>oid-registry-service</artifactId>
+      <version>${pom.version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>oid-registry-impl</artifactId>
+      <version>${pom.version}</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <!-- Uncomment to override default bundle jar naming convention
+    <finalName>my-bundle</finalName>
+    -->
+
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix.plugins</groupId>
+        <artifactId>maven-felix-plugin</artifactId>
+        <executions>
+          <execution>
+             <id>run</id>
+             <configuration>
+               <felixCacheDir>${basedir}/target/.felix</felixCacheDir>
+               <exclusions>
+               </exclusions>
+             </configuration>
+             <goals>
+               <goal>run</goal>
+             </goals>
+          </execution>
+        </executions>
+      </plugin>
+    
+      <plugin>
+        <groupId>org.apache.felix.plugins</groupId>
+        <artifactId>maven-osgi-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <!-- Uncomment to specify a manifest file to merge
+          <manifestFile>path/to/manifest.mf</manifestFile>
+          -->
+          <osgiManifest>
+            <bundleName>ApacheDS 2.0: Schema Oid Registry Test</bundleName>
+            <bundleActivator>org.apache.directory.server2.schema.registries.oid.test.OidRegistryTestActivator</bundleActivator>
+            <bundleVendor>Apache Software Foundation</bundleVendor>
+            <importPackage>org.apache.directory.server2.schema.registries.oid</importPackage>
+          </osgiManifest>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryTestActivator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryTestActivator.java?rev=434250&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryTestActivator.java
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/registries/oid/test/src/main/java/org/apache/directory/server2/schema/registries/oid/OidRegistryTestActivator.java
Wed Aug 23 16:38:24 2006
@@ -0,0 +1,45 @@
+/*
+ *   Copyright 2006 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.directory.server2.schema.registries.oid;
+
+
+import org.apache.directory.server2.schema.registries.oid.OidRegistry;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+
+
+/**
+ */
+public class OidRegistryTestActivator implements BundleActivator
+{
+    /**
+     */
+    public void start( BundleContext bundleContext ) throws Exception 
+    {
+        ServiceReference ref = bundleContext.getServiceReference( OidRegistry.class.getName()
);
+        OidRegistry registry = ( OidRegistry ) bundleContext.getService( ref );
+        registry.hasOid( "23.2.2.2" );
+    }
+
+    
+    /**
+     */
+    public void stop( BundleContext bundleContext ) throws Exception 
+    {
+    }
+}



Mime
View raw message