org.eclipse.edje/src/main/java/org/eclipse/edje/PeripheralManager.java
public static <P extends Peripheral> void register(Class<P> peripheralType, P peripheral) {
		PeripheralRegistry.checkModify(peripheralType, peripheral);
		PeripheralRegistry registry = PeripheralRegistry;
		FixedLengthFIFOQueue<RegistrationEvent<? extends Peripheral>> queue = EventsQueue;
		RegistrationEvent<P> event = registry.register(peripheralType, peripheral, queue != null, false);
		if (event != null) {
			queue.add(event);
		}
	}
/**
	 * Registers a new peripheral with the given type. If there is a security
	 * manager, its
	 * {@link SecurityManager#checkPermission(java.security.Permission)} method
	 * is called with {@link PeripheralManagerPermission#MODIFY} name and the
	 * peripheral type.
	 *
	 * @param <P>
	 *            the type of the peripheral to be registered
	 * @param peripheralType
	 *            the type of the peripheral to be registered
	 * @param peripheral
	 *            the peripheral to be registered
	 * @throws SecurityException
	 *             if a security manager exists and it does not allow the caller
	 *             to register a peripheral with the given type.
	 * @throws IllegalArgumentException
	 *             if the peripheral has already been registered
	 */
Registers a new peripheral with the given type. If there is a security
manager, its
SecurityManager#checkPermission(java.security.Permission) method
is called with  PeripheralManagerPermission#MODIFY name and the
peripheral type.

@param 
the type of the peripheral to be registered
@param peripheralType
the type of the peripheral to be registered
@param peripheral
the peripheral to be registered
@throws SecurityException
if a security manager exists and it does not allow the caller
to register a peripheral with the given type.
@throws IllegalArgumentException
if the peripheral has already been registered
Registers a new peripheral with the given type . If there is a security manager its SecurityManager#checkPermission ( java . security . Permission ) method is called with PeripheralManagerPermission#MODIFY name and the peripheral type . @param the type of the peripheral to be registered @param peripheralType the type of the peripheral to be registered @param peripheral the peripheral to be registered @throws SecurityException if a security manager exists and it does not allow the caller to register a peripheral with the given type . @throws IllegalArgumentException if the peripheral has already been registered
public static <P extends Peripheral> void register(Class<P> peripheralType, P peripheral) {
		PeripheralRegistry.checkModify(peripheralType, peripheral);
		PeripheralRegistry registry = PeripheralRegistry;
		FixedLengthFIFOQueue<RegistrationEvent<? extends Peripheral>> queue = EventsQueue;
		RegistrationEvent<P> event = registry.register(peripheralType, peripheral, queue != null, false);
		if (event != null) {
			queue.add(event);
		}
	}
public static < P extends Peripheral > void register ( Class < P > peripheralType , P peripheral ) { PeripheralRegistry . checkModify ( peripheralType , peripheral ) ; PeripheralRegistry registry = PeripheralRegistry ; FixedLengthFIFOQueue < RegistrationEvent < ? extends Peripheral > > queue = EventsQueue ; RegistrationEvent < P > event = registry . register ( peripheralType , peripheral , queue != null , false ) ; if ( event != null ) { queue . add ( event ) ; } }
Registers a new peripheral with the given type.
Registers a new peripheral with the given type .